char转16进制

来源:互联网 发布:mac 删除xlplayer 编辑:程序博客网 时间:2024/05/30 05:14
#define MAX_CHAR 3
unsigned char table[MAX_CHAR]={215、222、123};
char strTemp,strHex;
for (int i=0;i<MAX_PATH;i++)
 {
   strTemp.Format("%x",(int)table[i]);
   strHex+=strTemp;
}
MessageBox(strHex);