我有一个 char*
格式的字符串,想将其转换为 wchar_t*
,以传递给 Windows 函数。
最佳答案
这个小功能有帮助吗?
#include <cstdlib>
int mbstowcs(wchar_t *out, const char *in, size_t size);
关于c++ - 如何将 char 字符串转换为 wchar_t 字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1791578/