Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DECLARE VB vs FOX
Message
 
À
27/07/2005 11:55:52
Martin Joncas
Foxprostudio.Com
Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01036278
Message ID:
01036379
Vues:
8
The last parameter better to be declared as pointer to STRING:
DECLARE INTEGER myfunction IN myfile.dll;
	INTEGER Interfacenum, INTEGER DeviceNum,;
	STRING @buffer

LOCAL DataBuf
DataBuf = REPLICATE(Chr(0), 16)
Result = myfunction (0, 0, @DataBuf)
After function returns, for sure, the buffer will be stuffed with proper values. Treat characters as bytes.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform