A
Angus
I can see how to get a char* but is it possible to get a wide char -
eg
wchar_t?
eg
wchar_t?
I can see how to get a char* but is it possible to get a wide char -
eg
wchar_t?
I can see how to get a char* but is it possible to get a wide char -
eg
wchar_t?
std::string is a specialization of class basic_string with elements of
type char as a string.Hence std::string::c_str() would return you
char*. You can use MultiByteToWideChar function to convert this char
string into wchar_t string.
Instead use std::wstring which is a specialization of class
basic_string with elements of type wchar_t as a string and
std::wstring::c_str() would return you wchar_t*.You can use
WideCharToMultiByte function to convert this wide char string into
char string.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.