Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API functions with structures
Message
 
 
À
24/10/2003 20:31:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00842537
Message ID:
00842551
Vues:
24
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform