![](https://images2018.cnblogs.com/blog/1342526/201806/1342526-20180620190740624-285487840.png)
void rubyTools::funStrToWstr(string str, wstring& strw) { const char* pData = str.c_str(); int lengt = str.length(); UINT CodePage = 936; DWORD dwNum = MultiByteToWideChar(CodePage, 0, pData, -1, NULL, 0); if (dwNum == 0) { return; } WCHAR* pwText = new WCHAR[dwNum]; memset(pwText, '