Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM DLL
Message
 
To
03/03/2000 11:23:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00341260
Message ID:
00341361
Views:
23
>In VB you reference the project to the DLL. Once that's done it work much the same way as VFP i.e. create an object.
>
>The difference is in the DLL referencing. VB uses a menu command within the project, VFP uses 'DECLARE DLL'. The problem is I don't know if I have a good reference in VFP.

Donald,

VFP does not use delcare for a COM class. You use CreateObject() passing the COM classes name and library asi in;

oObj = CreateObject("MyDll.MyClassName")

Now oObj is an object reference to the COM object.
Previous
Reply
Map
View

Click here to load this message in the networking platform