CString str = L"Test"; std::wstring ws(str); std::string s; s.assign(ws.begin(), ws.end());
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
std::string s("Test"); CString s1(s.c_str()); // or CString s2 = s.c_str();
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.