Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using C function in VFP
Message
De
04/11/1999 08:38:20
 
 
À
04/11/1999 00:36:43
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00286699
Message ID:
00286776
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform