Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DECLARE VB vs FOX
Message
 
To
27/07/2005 11:55:52
Martin Joncas
Foxprostudio.Com
Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036278
Message ID:
01036379
Views:
9
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform