const char* str = "1111111";
int nLength = strlen(str);
char chInput[512];
sprintf(chInput, "int:%d\n", nLength);
WCHAR wszClassName[256];
memset(wszClassName, 0, sizeof(wszClassName));
MultiByteToWideChar(CP_ACP, 0, chInput, strlen(chInput)+1, wszClassName, sizeof(wszClassName) / sizeof(wszClassName[0]));
OutputDebugString(wszClassName);
转载于:https://www.cnblogs.com/ming20151206/p/5197353.html