char pBuf[6] = {'h','e','l','l','o','\0'};
WCHAR ws[20];
MultiByteToWideChar(
CP_ACP, 0,
pBuf, 6,
ws, 6 );
CString s;
s.Format("%s", ws);
MessageBox(s);为什么得不到hello?而只得到一个h?
WCHAR ws[20];
MultiByteToWideChar(
CP_ACP, 0,
pBuf, 6,
ws, 6 );
CString s;
s.Format("%s", ws);
MessageBox(s);为什么得不到hello?而只得到一个h?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货