COM Server Registration Question

COM Server Registration Question

Anonymous
Not applicable
247 Views
1 Reply
Message 1 of 2

COM Server Registration Question

Anonymous
Not applicable
Hi,
I'm making a library consisting of COM wrappers for custom entities and I need some help attaching proper GUID's to the entities. The problem is that I have one GUID for the library, one for the interface and one for the coclass, and they all differ, as in the .idl file attached. Now how do I setup the registry so that automation works?

OK, my entity's overridden GetClassID method returns the class ID of the wrapper, which I suppose is the GUID of the coclass. The trouble is that, in the AsdkSquareWrapper sample in the ObjectARX SDK, the library, the interface and the coclass all share one GUID !? There's also an example of the .reg file with which setting up of the COM wrapper is performed but in my case of three different GUID's, which goes where? What about the Autodesk\ObjectDBX\ActiveXCLSID key, appearing in the generated .rgs file (also attached), what's that for?

Thanks for helping,
Janko Jerinic
0 Likes
248 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I'm sorry, this was embarrasing 🙂
I urge you to disregard the previous post, since the point is that I missread the three GUID's (library/interface/coclass) because they differ in only one number. Look:

GUID's:
Library 800F70A1-6DE9-11D2-A7A6-0060B0872457
Interface 800F70AD-6DE9-11D2-A7A6-0060B0872457
Coclass 800F70AE-6DE9-11D2-A7A6-0060B0872457

I'm sooo sorry, I guess it's only natural too be a bit impatient at age of 22 🙂

Janko Jerinic
0 Likes