Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating Class of a COM-Server
Message
From
19/05/2005 09:49:55
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01015374
Message ID:
01015806
Views:
17
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
Map
View

Click here to load this message in the networking platform