Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~853 People Reached
Favorite Forums
Favorite Tags
Member Avatar for hendyhanusin

Dear friends, do you know how to convert the following codes into C # ? Tks, hendy [code] BYTE ResultSN[11]; char SN[100]; BYTE TagType; if ((TagType == 4) || (TagType == 5)) { memcpy(SN,ResultSN, 7); StrMsg.Format("Card Serial: %02x %02x %02x %02x %02x %02x %02x ",ResultSN[0],ResultSN[1],ResultSN[2],ResultSN[3],ResultSN[4],ResultSN[5],ResultSN[6] ); } [/code]

Member Avatar for Johan Stolk
0
381
Member Avatar for hendyhanusin

Dear friends, I wrap an unmanaged VC++ 6.0 class in VB .NET like below : [code] Declare Function ACR120_ReadATQB Lib "ACR120U.DLL" (ByVal rHandle As Short, ByRef pATQB As Byte) As Short Declare Function PICC_RATS Lib "ACR120U.DLL" (ByVal rHandle As Short, ByVal FSDI As Byte, ByRef atslen As Byte, ByRef ats …

Member Avatar for kerek2
0
336
Member Avatar for hendyhanusin

Dear friend, do you know how to convert Right function (in VB .NET) to C# ? Tks, hendy ========== [code] Public Function Format_Hex2(ByVal NUM As Integer) As String 'Format Byte into two-digit Hex Format_Hex2 = Microsoft.VisualBasic.Right("00" & Hex(NUM), 2) End Function [/code]

Member Avatar for waynespangler
0
61
Member Avatar for hendyhanusin

Dear Friend, How to convert these codes into VB .NET ? Tks, hendy =============================== [code=C++] BYTE cmd[NumMsg][7]={{0x00,0xA4,0x00,0x00,0x02,0x02,0x47}, {0x00,0xA4,0x02,0x00,0x02,0x01,0x02}, {0x00,0xB0,0x00,0x00,0xff,0x00,0x00}}; BYTE DataLength, pData[10], ResponseDataLength; BYTE pResponseData[100]; INT16 TimeOut=50, i, CardFrameSize; char pdata[500]; char *ATS_ATQB; CardFrameSize=0; pdata[0]='\0'; ResponseDataLength=0; if (PICC_RATS(rHandle, 4, &ResponseDataLength, pResponseData)>=0) { CardFrameSize=pResponseData[1]&0x0f; } for (i=0; i<ResponseDataLength; i++) { StrMsg.Format(" …

0
75