Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating Class of a COM-Server
Message
De
19/05/2005 09:49:55
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01015374
Message ID:
01015806
Vues:
18
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".
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform