C++ 由std::string转为LPCWSTR
std::wstring s2ws(const std::string& s)
{
int len;
int slength = (int)s.length() + 1;
len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, 0, 0);
wchar_t* buf = new wchar_t[len];
MultiByteT
转载
2013-04-08 19:46:41 ·
2083 阅读 ·
0 评论