VS 打印信息到“输出”窗口

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);

你可能感兴趣的:(VS 打印信息到“输出”窗口)