字符串操作-CSDN博客

网站介绍:文章浏览阅读65次。std::string ConvertFromWideString(const std::wstring& string){ int neededSize = WideCharToMultiByte(CP_UTF8, 0, string.c_str(), -1, 0, 0,0,0); char * CharString = new char[neededSize]; WideCharToMultiByte(CP_UTF8, 0, string.c_str(), -1, Ch