Lee
0
Q:

string to wchar_t

wchar_t* wide_string = new wchar_t[ s.length() + 1 ];
std::copy( s.begin(), s.end(), wide_string );
wide_string[ s.length() ] = 0;

foo( wide_string );

delete [] wide_string;
0

New to Communities?

Join the community