>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