如果你是非unicode编译,那么汉字字符直接类型转换为双字节数字 就是其GB2312/GBK编码 char szHello[] = "你好";
CString strCP936;
strCP936.Format("%x",*(WORD*)szHello);
strCP936 = strCP936.Mid(2) + strCP936.Left(2); //高字节在前
MessageBox(strCP936);
CString strCP936;
strCP936.Format("%x",*(WORD*)szHello);
strCP936 = strCP936.Mid(2) + strCP936.Left(2); //高字节在前
MessageBox(strCP936);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货