Showing posts with label mfc cstring. Show all posts
Showing posts with label mfc cstring. Show all posts

Friday, April 1, 2016

CString scenario where concatenation does not work

CString ss = _T("Hello");
ss = ss + _T(" World");

//works fine

//but, when you are dealing with file loc c:
CString ss = _T("c:\\clsdata"), temp;
ss = ss + _T("\\jobs");//will not work
temp.Format(_T("%s\\jobs"), ss);// will work