const char *转 LPCWSTR

#include 
#include 

std::string folderPath;
WCHAR wszClassName[256];
memset(wszClassName, 0, sizeof(wszClassName));
MultiByteToWideChar(CP_ACP, 0, folderPath.c_str(), strlen(folderPath.c_str()) + 1, wszClassName, sizeof(wszClassName) / sizeof(wszClassName[0]));

你可能感兴趣的:(c++,开发语言)