Advertisement
Naohiro19

CString Test

Mar 30th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale>
  3. #include <atlstr.h>
  4.  
  5. int main()
  6. {
  7. CString str("Hello world!");
  8. std::wcout.imbue(std::locale("Japanese", std::locale::ctype));
  9. std::wcout << str.GetString() << std::endl;
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement