我需要转换ReadDirectoryChangesW的Unicode版本,以支持多字节是可能的
发布于 2009-10-06 19:44:19
您可以使用这个简单的方法将多字节字符串转换为unicode字符串
#include <string>
#include <sstream>
template <typename inputtype>
std::wstring toUTF16String(const inputtype& input)
{
std::wstringstream ss;
ss << input;
return ss.str();
}然后,您可以在unicode函数中使用此获取的值。
https://stackoverflow.com/questions/1525996
复制相似问题