Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using C function in VFP
Message
From
04/11/1999 08:38:20
 
 
To
04/11/1999 00:36:43
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00286699
Message ID:
00286776
Views:
14
>Hello everyone:
>I have several 'C' function which I would like to use in my VFP application. I was wondering what would be the best to do that. Do I have to create a dll file and use DECLARE in VFP for using ir or is their an easier soluction. I would prefer a solution which doesnt require me to use dll files because I dont know how to create them.
>

Two basic options - create a .DLL with standard C calling (not C++ calling), and use the DECLARE...DLL syntax, or create a COM object containing the desired functionality, and access the function as a method of something instantiated via CREATEOBJ() or NEWOBJECT() - less work on the VFP side, but requires you to make your function a method of a COM component written in C.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform