General information
Category:
COM/DCOM and OLE Automation
Hi,
What I do sometimes is search the registry for a filename so I can find the correct progid. The progid doesn't always match the filename like you might think it should.
Gary
>You may want to post your code - the com server and the code you are using to instantiate it.
>>
>>>Hello,
>>>
>>>I've got an .exe file which is a COM-Server. I've registered it with ... /regserver. Object Browser sees it, in Excel I can instantiate objects based on its classes without any further declarations.
>>>
>>>As soon as I try to CreateObject, I get the message "Class Definition ... is not found".
>>>
>>>It seems I just miss some knowledge about how it must be done...
>>>
>>>Can someone help?
>>>
>>>Thanks
>
>Hallo Wayne,
>
>the COM-Server is called GXMLTBV2.exe, has nothing to do with VFP, so I can't post any code. The registered name of the library is GXMLTBV200. The class I need to instantiate is GXML_GAEB.
>
>In Visual Basic I just put:
>
>DIM oGAEB as GXML_GAEB
>Set oGAEB = New GXML_GAEB
>
>In VFP I have tried
>
>oGAEB = CreateObject("GXML_GAEB")
>oGAEB = CreateObject("GXMLTBV200.GXML_GAEB"),
>
>but always with the same result - "Class definition is not found".
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only