Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't pass parameter and call function in the DLL
Message
From
17/02/1999 08:54:30
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00182255
Message ID:
00188341
Views:
18
hi Ed Rauh,
Below is the function i want to call and parameter want to pass and return:
(1)
>G_ICCPresent(const WORD16 ChannelNb,Byte *Response)
>Byte Response
>G_ICCPrensent(0,&Response)

The question is how to call it in VFP by use your CLSHEAP.prg ?
What is &Response mean ? The declare is look like this?:
>Declare G_ICCPresent In V100_32.DLL string ChannelNb, String @Response
I want get the return value of Response.

(2)Below is another function :
>G_ReaderVersion(const WORD16 ChannelNb, Byte *Response)
>Byte sDataOut[20}
>G_ReadVersion(0,sDataOut)
I want to get the return value of sDataOut, how in Vfp use CLSHEAP.prg?
The declare statement is look like this ?
>Declare G_ReaderVersion In V100_32.DLL string ChannelNb, string @response

(3)Another Function :
>G_ExchangeApdu(APDU_COMM *ApduComm, APDU_RESP *ApduResp)
>typedef struct Apdu APDU_COMM;
>typedef struct Resp APDU_RESP;
>APDU_COMM ApduComm
>APDU_RESP ApduResp
>BYTE Command[COMMAND_LEN];
> WORD16 LengthIn;
>BYTE ReturnVal;
Below is value to pass:
>ApduComm.Command[0]=0x00;
>ApduComm.Command[1]=0xde;
>ApduComm.COmmand[2]=0x08;
>ApduComm.Command[3]=0x2c;
>ApduComm.LengthIn=0x00;
>ReturnVal=G-ExchangeApdu(&ApduComm,&ApduResp)
How to cal it in VFP ?

You said i have to use the Alloc() method in CLSHEAP.prg but i'm not clear about the Alloc() method. I'm sure that the DLL is Win32 API.
Thank you very much.

regard,
chang
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform