多字节转宽字节
1 #include<Windows.h> 2 3 wchar_t* MultiCharToWideChar(char* str) 4 { 5 auto len = MultiByteToWideChar(CP_ACP, 0, str, strlen(str), NULL, 0); 6 wchar_t *buffer = new wchar_t[len + 1]; 7 MultiByteToWideChar(CP_ACP, 0, str, strlen(str), buffer, len); 8 buffer[len] = '