SmartCard ActiveX
sending APDU command using vbscript
from
message
swistak
lug 27, 2008
time 15.55
Hi I want to send an APDU command using ActivX Control in web brawser. I use vbscript to do it. I have a problem i cant solve. my code looks that: sub ReadDataFromCard() Dim Recv1() Dim Recv2() Dim Revc3() Dim i Dim s SCard1.Connect ' connect to card SCard1.APDUCommand h00, hA4, h04, h00, h00, Array(hD6, h16, h00, h00, h30, h01, h01), Recv1() SCard1.APDUCommand h00, hA4, h02, h00, hFF, Array(h00, h02), Recv2() SCard1.APDUCommand h00, hB0, h00, h00, h96, Array(), Recv3() s = vbNullString for i = 0 to UBound(Recv3) s = s Hex(Recv3(i)) next MsgBox s end sub end i get Recv1 index out of range in line SCard1.APDUCommand... Please help
Login
Home
Hardware
Software
Download
Store
Forums
Archive
Customer
Reseller
©2004 (CSI) Centro Studi Informatica di Danilo Priore. All rights reserved.