guys!!
let me show you the code first:
Code:
ReType = 0
Cm = &H53
Pm = &H33
St1 = 0
St0 = 0
CLA = &H0
INS = &HB0
P1 = &H0
P2 = 0
Dim TxArray() As Byte
TxArray = System.Text.Encoding.ASCII.GetBytes(TextBox1.Text)
Dim TxArrayLen As Byte = TxArray.Length
TxData = {CLA, INS, P1, &H10, TxArrayLen, TxArray}
TxDataLen = TxData.Length
RxDataLen = 0
i = CRT288KDLL.DllClass.RS232_ExeCommand(Hdle, Cm, Pm, TxDataLen, TxData, ReType, St1, St0, RxDataLen, RxData)
Now here it is... I am writing to a smartcard and there I'm taking the "To be written" from a textbox (textbox1). After I take the value from the text box, I have to construct a specific format of data for using that with the API. Thus the thing for MISHU should come as:
TxData = {CLA, INS, P1, &H10, TxArrayLen, &H4d, &H49, &H53, &H48, &H55}
any guideline for this plz...
Mishu~