SHFileOperation 解决double-null terminated
Posted likemao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SHFileOperation 解决double-null terminated相关的知识,希望对你有一定的参考价值。

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, ‘