![]() |
|||
Comments and Discussions
|
About Article
Alternative to C++: Converting an MFC CString to a std::string
As you use CString, you have access to the CW2A ATL macro, assuming that you work with _UNICODE defined, here it is:CString theCStr;...std::string STDStr( CW2A( theCStr.GetString() ) );which will convert to "system encoding on the user's machine" (thanks Nemanja[^] comment !), if you...
Top News
10 Technology Skills That Will No Longer Help You Get A Job Get the Insider News free each morning.Related Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||