General information
Category:
Windows API functions
Title:
API functions with structures
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only