Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C functions in VFP
Message
De
07/09/2000 17:32:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00413364
Message ID:
00413918
Vues:
16
>>Can C functions be used issuing DECLARE in MSVCRT.DLL VFP as API ones are used?
>
>Sure you can, just as you listed above, and just like you would call a Win32 API function. There's plenty of fun stuff in the C runtime that you may not find anywhere else. For instance, there's _fpreset(), which is used to fix a bug in many printer drivers. I used that function in the article because, hey, guess what, there's no other way to reset the FPU (at least none that I found).

Yep; most C-style DLL functions which don't use callbacks can be called from VFP; some may need to use an add-on such as Christof Lange's STRUCT or my CLSHEAP to handle pointer and structure-related issues.
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