请问如何在unicode模式下正常显示汉字?(有内容)
char* desc = "体";
char buf[50];
memset(buf, 0, sizeof(buf));
strcpy(buf, desc);
_TCHAR chMsg[100];
memset(chMsg, 0, sizeof(chMsg));
int templen = MultiByteToWideChar(CP_ACP,0,buf,-1,NULL,0);
_TCHAR *temp = new _TCHAR[templen];
MultiByteToWideChar(CP_ACP,0,buf,-1,temp,templen);
swprintf(chMsg, L"%s",temp);
delete temp;
temp = NULL;
这样的代码好象只能处理英文字符,不能处理汉字的正确显示。有哪位大虾知道还需要做什么工作?我现在是在Embedded Visual c++下开发