Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...thank you for the wonderful resource that you have enabled here. It is clear, concise, well maintained and most importantly, helpful..."

Geography

Where in the world do Tek-Tips members come from?
elismaj (Programmer)
1 Aug 05 16:09
Hi guys I'm new to the COM World. I'm coding in X++ on Microsoft Axapta and I'd like to find out if a com object is available for a specific methods: StgOpenStorageEx and probably IPropertySetStorage both located in the OLE32.dll.

The class name of a COM object is supposed to be either its ProgID (programmatic identifier) or CLSID (class identifier):

ProgIDs have the following format: <program>.<component>.<version> (e.g. "AXAPI.Axapta.1 "). Note that the version element of the ProgID can often be omitted.

CLSIDs are 128 bit values and have to following format: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} (e.g. "{80F444A1-46FF-11D2-8459-0008C7A0D1EA}").

The thing is I don’t know the <program>.<component> format for the methods I'm looking for (StgOpenStorageEx and IPropertySetStorage) and I don’t know any possible CLSID ether.

I obviously need more info on how to access a specific COM and there format.  I'm not expecting any one to know X++ or to past me X++ code because X++ is applicable only to Axapta ERP developed by Navision with Microsoft an recently purchase by Microsoft.

If you guys have references or examples in any language I would appreciate it a lot
Thx for you feedbacks

Jack
BobRodes (Instructor)
4 Aug 05 20:22
In your example, AXAPI is actually the component, and Axapta is the class; there is a 1-1 correspondence between CLSID and Axapta.

If you want to dig around, and you have Visual Studio, go into the Tools (not the Enterprise tools) menu and select OLE View.  That will give you the OLE/COM Object viewer, which will let you peek into everything.

VB example:

CODE

dim x as MyComponent.MyClass
set x = new mycomponent.myclass
x.SomeProperty = SomeValue
x.SomeMethod "OptionallySomeArgument"


Good Luck,

Bob

p. s. see FAQ222-2244 for reasons to keep related questions on the same thread.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close