Q: How to convert between 'CString' and 'std::string'?
A:
'CString' to 'std::string':
'std::string' to 'CString':Code:CString cs("Hello"); std::string s((LPCTSTR)cs);
Code:std::string s("Hello"); CString cs(s.c_str());
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |