Thứ Ba, 19 tháng 7, 2011

Convert CString to std::wstring

To convert CString to std::wstring in MFC or C++, you can use this syntax:
 
   CString myCString = "I love Viet Nam";  // If you use Unicode format, you have to insert 'L' character before this quote
   std::wstring result;
    result = (LPCTSTR)outPutFolder;

We look it is same as the way that we use to convert CString to std::string when we don't use Unicode format.
Best wishes for you. Thanks for visiting my blog!
Do your best, the rest will come!

Không có nhận xét nào:

Đăng nhận xét

Install Kubernetes using kubeadm with two nodes master & worker

Well come back for a long time my friends! Today I want to take a note about some basic knowledge about Kubernetes. I hope that it will...