Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API functions with structures
Message
 
 
To
24/10/2003 20:31:43
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00842537
Message ID:
00842551
Views:
23
You may try another one http://fox.wikis.com/wc.dll?Wiki~ApiStructureClass

>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.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform