If you really need stringfrom wchar_t*you first need to convert wchar_t*to char*. There are various ways to do this, depending on which compiler you are using. The easiest way is to use wcstombs(), but there are caveats to this. Here is a good discussion on this subject, with some solutions that may inspire you http://www.daniweb.com/software-development/cpp/threads/87362 .
However, you can just use wstringdirectly with wchar_t*, as @ Space_C0wb0y mentioned. If this is what you are looking for, mark his answer correctly.
source
share