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