Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: ruel parayno
  Where is ruel parayno?
 dagupan city
 Philippines
 ruel parayno
 To: Chung Daniel
  Where is Chung Daniel?
 
 Taiwan
 Chung Daniel
 Tags
Subject: RE: about some smart card question... thanks
Thread ID: 155063 Message ID: 155310 # Views: 5 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Saturday, December 29, 2007 3:26:34 PM         
   


> 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.

ENTIRE THREAD

about some smart card question... thanks Posted by Chung Daniel @ 12/23/2007 7:30:21 PM
RE: about some smart card question... thanks Posted by ruel parayno @ 12/29/2007 3:26:34 PM
RE: about some smart card question... thanks Posted by Boudewijn Lutgerink @ 1/3/2008 9:55:42 AM
RE: about some smart card question... thanks Posted by ruel parayno @ 1/3/2008 3:05:34 PM
RE: about some smart card question... thanks Posted by Boudewijn Lutgerink @ 1/3/2008 7:22:30 PM
RE: about some smart card question... thanks Posted by Chung Daniel @ 1/4/2008 3:03:18 AM
RE: about some smart card question... thanks Posted by suhas hegde @ 1/6/2008 8:24:18 PM
RE: about some smart card question... thanks Posted by Chung Daniel @ 1/3/2008 5:34:36 PM
RE: about some smart card question... thanks Posted by ruel parayno @ 1/4/2008 1:54:21 PM
RE: about some smart card question... thanks Posted by Chung Daniel @ 1/5/2008 3:31:27 AM
RE: about some smart card question... thanks Posted by ruel parayno @ 1/5/2008 2:12:59 PM
RE: about some smart card question... thanks Posted by Chung Daniel @ 1/9/2008 8:56:59 AM
RE: about some smart card question... thanks Posted by ruel parayno @ 1/9/2008 2:04:38 PM