I have a string in char* format and would like to convert it to wchar_t*, to pass to a Windows function.
char*
wchar_t*
Does this little function help?
#include <cstdlib> int mbstowcs(wchar_t *out, const char *in, size_t size);
Also see the C++ reference
2.1m questions
2.1m answers
60 comments
57.0k users