convert these C++ codes to VB .NET ?

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2007
Posts: 5
Reputation: hendyhanusin is an unknown quantity at this point 
Solved Threads: 0
hendyhanusin hendyhanusin is offline Offline
Newbie Poster

convert these C++ codes to VB .NET ?

 
0
  #1
Jul 19th, 2007
Dear Friend,

How to convert these codes into VB .NET ?


Tks,
hendy

===============================
  1. BYTE cmd[NumMsg][7]={{0x00,0xA4,0x00,0x00,0x02,0x02,0x47},
  2. {0x00,0xA4,0x02,0x00,0x02,0x01,0x02},
  3. {0x00,0xB0,0x00,0x00,0xff,0x00,0x00}};
  4.  
  5. BYTE DataLength, pData[10], ResponseDataLength;
  6. BYTE pResponseData[100];
  7. INT16 TimeOut=50, i, CardFrameSize;
  8. char pdata[500];
  9. char *ATS_ATQB;
  10.  
  11. CardFrameSize=0;
  12. pdata[0]='\0';
  13. ResponseDataLength=0;
  14.  
  15. if (PICC_RATS(rHandle, 4, &ResponseDataLength, pResponseData)>=0) {
  16. CardFrameSize=pResponseData[1]&0x0f;
  17. }
  18.  
  19. for (i=0; i<ResponseDataLength; i++) {
  20. StrMsg.Format(" %02X", pResponseData[i]);
  21. strcat(pdata,StrMsg);
  22. }
  23.  
  24. ACR120_API INT16 AC_DECL PICC_RATS(INT16 rHandle, UINT8 FSDI, UINT8 *atslen, UINT8 *ats);
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1347 | Replies: 0
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC