Conversion
C / C++ / MFC
5
Posts
2
Posters
0
Views
1
Watching
-
Hi Guys, How Can I convert a CString to a T_String. My T_String is a typedef defined as follows. typedef std::wstring T_String;//wstring,co's my project is unicode defined. Thanks......
Just curious.... Why are you doing that? CString has already unicode support. Jaime
-
Just curious.... Why are you doing that? CString has already unicode support. Jaime
-
since CString (when UNICODE is defined) and std::wstring both are defined as an array of wchar, you could safely do: CString sOther = _T("This is a string"); T_String s = (LPCTSTR)sOther; Jaime
-
since CString (when UNICODE is defined) and std::wstring both are defined as an array of wchar, you could safely do: CString sOther = _T("This is a string"); T_String s = (LPCTSTR)sOther; Jaime