007
18.09.2003, 19:46 Uhr
~Atze
Gast
|
Hallo,
aufgerufen wird die dll wie folgt................
Visual Basic: |
Declare Function SCardComand Lib "SCARD32.dll" (Handle As Long, ByVal Cmd As String, CmdLen As Long, ByVal DataIn As String, DataInLen As Long, ByVal DataOut As String, DataOutLen As Long) As Long
||LC01||||LC01|| Private Sub CommandButton4_Click() Dim D As String Dim E As String Dim E1 As String Dim nil As String
D = String(30, 0) E1 = String(10, 0) L = SCardComand(0, "Apps,KVK,Name", 0, nil, 0, D, 35) If L = 4104 Then L = SCardComand(0, "Apps,KVK,Name", 0, nil, 0, D, 35) If L = 0 Then Label3.Caption = "Karte korrekt eingelesen !" Else DisplayError (L) Label1.Caption = D End Sub
||LC01|| Private Sub DisplayError(L As Long) Dim I As String Dim X As String I = String(200, 0) X = SCardComand(0, "System,ConvertErrCode," & Hex(L), 0, 0, 0, I, 200) Label3.Caption = "ERROR: " & Hex(L) & " " & I Exit Sub End Sub
|
wie gesagt ich muss alles über Buttons starten, möchte aber eine Event Lösung.
MfG
Atze
-edit: Pablo [ vb ] tags gesetzt Dieser Post wurde am 18.09.2003 um 19:54 Uhr von Pablo Yanez Trujillo editiert. |