c++ - How do I convert wchar_t* to std::string? -
i changed class use std::string (based on answer got here here function have returns wchar_t *. how convert std::string?
i tried this
std::string test = args.optionarg(); but says error c2440: 'initializing' : cannot convert 'wchar_t *' 'std::basic_string<_elem,_traits,_ax>'
you use wstring , keep in unicode
Comments
Post a Comment