Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pass parameter and call function in the DLL
Message
De
16/02/1999 03:54:05
 
 
À
03/02/1999 09:31:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00182255
Message ID:
00187937
Vues:
20
Hi Paul;

Below is the data structure declare in C.
>>struct Session
>>{
>> WORD8 CardType;
>> WORD8 ResetLen;
>> BYTE ResetChar[RESET_LEN_MAX];
>> WORD8 HistLen;
>> WORD8 HistOffset;
>> WORD8 Dummy;
>> WORD32 ApduLenMax;
>>};
>
>>struct Apdu
>>{
>> BYTE Command[COMMAND_LEN];
>> WORD16 LengthIn;
>> BYTE *DataIn;
>> WORD32 LengthExpected;
>>};
>
>>struct Resp
>>{
>> WORD32 LengthOut;
>> BYTE *DataOut;
>> WORD16 Status;
>>};
>typedef struct Session SESSION_PARAM;
>typedef struct Apdu APDU_COMM;
>typedef struct Resp APDU_RESP;
>
Below is one of function call
1)G_ExchangeApdu(const BYTE ChannelNb,APDU_COMM *ApduComm,
APDU_RESP far *ApduResp);
The DLL file is V100_32.DLL

How to call the function in VFP, i know have to use your Pointer.vcx or Ed Rauh CLSHEAP.prg.
Ed Rauh told me that since far * in C is represent Win16, so can i use declare statement to call teh DLL as well as the function ?
Any comment ?
thanks

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

Click here to load this message in the networking platform