> I have a vb program, but i can`t write it in Visual FoxPro,... please help me.. thanks
>
> its about a smart card reader....
>
> Public Declare Function SCardTransmit Lib ”Winscard.dll” (ByVal hCard As Long, _
> pioSendRequest As SCARD_IO_REQUEST, _
> ByRef SendBuff As Byte, _
> ByVal SendBuffLen As Long, _
> pioRecvRequest As SCARD_IO_REQUEST, _
> ByRef RecvBuff As Byte, _
> ByRef RecvBuffLen As Long) As Long
>
> RetCode = SCardTransmit(hcard_num, _
> sendprotocol, _
> SendBuff(1), _
> SendBuffLen, _
> recprotocol, _
> RecvBuff(1), _
> RecvBuffLen)
>
>
> .... thanks for your help
hi! what's your smart card reader? why not consider using the card readers from Advanced Card Systems. The SDK for these readers worked well with VFP. In fact, i developed a loyalty card program in VFP6 using the ACR120 contactless smart card reader.
the problem i see with the SCardTransmit function is that it uses a data type which VFP cannot recognize: SCARD_IO_REQUEST. You can overcome this by creating an OLE object in VB which you can import in VFP.