Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM DLL
Message
From
03/03/2000 13:27:41
 
 
To
03/03/2000 13:03:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00341260
Message ID:
00341363
Views:
25
>I must be missing something. I get a 'Class Definition not found' error.
>
>Isn't createobject() used for Visual FoxPro Classes? Should I be using createobjectex()?
>
>Thanks for your help.

CREATEOBJECTEX is for instanciating an object on a remote machine. CREATEOBJECT works for both native VFP classes, and COM classes.

If your VC++ dll is a COM server, then when you built it, VC++ should have registered a ProgID for every class that lives in the dll. It is this ProgID that you use to instanciate the class, and it almost always takes toe form of "Project.Class". COM servers expose PEMs through the COM interface, which does not require a declare, only that the object be instanciated with CREATEOBJECT. VFP does not resolve available interfaces until runtime (unlike early binding with VB: DIM MyObject AS Class).
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform