如何将unicode转换成字符串
CString sUCode=_T("00D7");
TCHAR* pStop = NULL;
wchar_t wc = (short)_tcstol(sUCode, &pStop, 16);
CString str;//如何将00D7转换成字符串"×"
[解决办法]
- C/C++ code
CString str;str.Insert(0, wc);
发布时间: 2012-04-09 13:41:25 作者: rapoo
如何将unicode转换成字符串
CString sUCode=_T("00D7");
TCHAR* pStop = NULL;
wchar_t wc = (short)_tcstol(sUCode, &pStop, 16);
CString str;//如何将00D7转换成字符串"×"
[解决办法]
CString str;str.Insert(0, wc);