Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pass parameter and call function in the DLL
Message
De
01/02/1999 23:28:14
 
 
À
31/01/1999 08:33:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00182255
Message ID:
00182820
Vues:
19
Ed Raud,
Let me show you the .h files which consist the tydef of the structure :
Below is the first .h file "gpl32.h":
>typedef unsigned char WORD8;
>typedef unsigned int WORD16;
>typedef unsigned long WORD32;
>typedef signed int INT16;
>typedef unsigned char BYTE;

>struct Channel
>{
> WORD8 Nb;
> WORD8 ReaderType;
> INT16 ReaderPort;
> WORD32 BaudRate;
>};

>typedef struct Channel CHANNEL_PARAM;
>INT16 _stdcall G_OpenChannel(CHANNEL_PARAM *Channel); /* function call*/

the second .h file "v100_32.h"
>#define Baud9600 5
>#define COM2 1

below is the parameters want to pass when call the function:
>CHANNEL_PARAM Chan1;
>Chan1.BaudRate=Baud9600;
>Chan1.ReaderPort=Com2;
>G_openChannel(&Chan1)

How to call and pass the parameters to the function in the .DLL (v10032.dll) in VFP?
is it i need to include the .h file in the VFP program ?

regard,
chang
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform