我在一个变量中有一个字符串,这个字符串来自项目的核心部分。现在我想把它转换成unicode字符串。我如何才能做到这一点,添加L或_T()或TEXT()不是一个选项。请看下面 //Here the contents of the variable STRING should be converted to Unicode
我读过可以使用SHGetSpecialFolderPath();获取AppData路径的文章。但是,它返回一个TCHAR数组。我需要一个std::string。如何将其转换为std::string我已经读到可以使用getenv("APPDATA"),但是它在Windows中是不可用的。我想支持Windows Windows 10.