部分代码
char buf[255];
m_recv.Receive(buf,255); //接收消息
CString msg;
msg.Format("%s", buf);
将接收到的消息倒置,可是倒置后中文为乱码,高手帮帮忙啊!!
char buf[255];
m_recv.Receive(buf,255); //接收消息
CString msg;
msg.Format("%s", buf);
将接收到的消息倒置,可是倒置后中文为乱码,高手帮帮忙啊!!
wLen = MultiByteToWideChar(CP_ACP, 0, cache_file, temp, NULL, 0);cache_fileW = new WCHAR[wLen];
MultiByteToWideChar(CP_ACP, 0, cache_file, temp, cache_fileW, wLen);