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
1.4m articles
1.4m replys
5 comments
57.0k users