Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM DLL
Message
 
 
To
03/03/2000 12:18:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00341260
Message ID:
00341314
Views:
26
>If the DLL (ATL COM) is not declared and thus not in memory how does VFP access the functions within the DLL?
>
>For example, I have a COM DLL called NameParse.dll which contains a function called GetName(char name, char* retval) how would I use newobject() or createobject()?

oNameParse = createobject('class') && class is the class defined in your DLL
cVar = oNameParse.GetName(param1, param2)

After you create your COM DLL, you need to run regsvr32 on it to register it. When VFP runs createobject() or newobject(), one of the things it searches is the registry to find the name of the class. It will find it and the registry entry will tell it what and where the DLL is to load that class.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform