Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating Class of a COM-Server
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01015374
Message ID:
01015388
Views:
22
>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".
Alexander Lerner
a_lerner@heinrich-schmid.de

The life is somewhat easier than it seems to be.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform