Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB Call to API vs VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00255827
Message ID:
00256537
Vues:
29
>Hi Ed,
>
>>if your DECLARE...DLL has a STRING @ parameter, passing an integer 0 works as a null pointer (equivalent to VB's vbNull construct.)
>
>I usually pass .NULL. in this case, VFP translates that to 0, as well.
>
>>a SHORT, which is two bytes, and can only be declared as the return type.
>
>That's new to me. I used it as a parameter type in DECLARE and it worked, except for passing by reference in VFP 5, where the return value is always 0.
>

That's what appears in the VFP6 docs; take a look at the current entry for DECLARE...DLL there; it lists available return types of SHORT, INTEGER, SINGLE, DOUBLE LONG and STRING, but only INTEGER, SINGLE, DOUBLE, LONG and STRING for parameter types.

>Christof
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform