But the proper way would be to use the TEXT macro for string literals:
MessageBox(/*...*/,TEXT("somestring"),/*...*/);
Or, to test whether UNICODE was defined.
Thanks for answers, it helped a bit. I got the conversion by writing:
wstring str = L"mystring";
MessageBoxW(NULL, str.c_str(), ...);
TEXT("something") also works fine, but only with constants written directly in it, becouse it puts L to anything what is written inside (as far as i tried).
But the thing is i have constructed a string by using stringstream. How can i convert it to make it show in the messagebox? My code: