Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::std::string str;
- BOOL loadU(const wchar_t* lpszPathName, int flag = 0);
- loadU(&str);
- std::wstring name( L"Steve Nash" );
- wchar_t* szName = name.c_str();
- #include <atlconv.h>
- ...
- std::string str = "Hello, world!";
- CA2W pszWide(str.c_str());
- loadU(pszWide);
- CA2W pszWide(str.c_str(), CP_UTF8);
- std::wstring widestr = std::wstring(str.begin(), str.end());
- wchar_t* widecstr = widestr.c_str();
Add Comment
Please, Sign In to add comment