具体代码:
char name[256] = {0}; //function(name); WCHAR wszClassName[256]; memset(wszClassName,0,sizeof(wszClassName)); MultiByteToWideChar(CP_ACP,0,name,strlen(name)+1,wszClassName, sizeof(wszClassName)/sizeof(wszClassName[0])); MessageBox(NULL, wszClassName, L"Test", 0);