we have a multi-threaded desktop application in C++ (MFC). Currently developers use either CString or std::string, probably depending on their mood. So we\'d like to choose a s
I would suggest making a "per DLL" decision. If you have DLLs depending heavily on MFC (for example, your GUI layer), where you need a lot of MFC calls with CString
parameters, use CString
. If you have DLLs where the only thing from MFC you are going to use would be the CString class, use std::string
instead. Of course, you will need conversion function between both classes, but I suspect you have already solved that issue.