Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API functions with structures
Message
From
24/10/2003 20:31:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
API functions with structures
Miscellaneous
Thread ID:
00842537
Message ID:
00842537
Views:
75
Hello All,
I have to use a 3rd party DLL that one of its parameters is structure type.
How can i create the structure in VFP8? I tried Christof Lange's
struct library without any success (It is to complicated for me).

The following is the example they give in C code
*******************
INT16 WINAPI FSL_SelectDevice(STRUCTDEV *Dev, BYTE *param2)
Parameters:
'Dev' The device descriptor (is a structure).
'param2' a string

Example:
#define SDTYPE_SERIAL 0x0001
Dev.Conn.iType = SDTYPE_SERIAL; // A serial device
Dev.Conn.wPort = 1; // At to COM1
strcpy(Dev.strSerialNo, "ABC02000001"); // Has this s/n
iRet = FSL_SelectDevice(&Dev, "any_string")
****************
Can any one indicate the VFP equivalent?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform