I think you can finish it as the following: int nNum = 7424; char szNum[20]; sprintf(szNum, "%x", nNum); Coding,I love it! MM,I Love it 2!!
W
wwwhb2000
@wwwhb2000
Posts
-
Converting int to Hex String -
Reading data from Serial Port.I think you can solve this problem by the following code: BYTE byte2Read[20]; for( int nRead=0; nRead<20;) { if( ReadByte( byte2Read[nRead] ) ) { nRead++; } } Coding,I love it! MM,I Love it 2!!