I am writing some MFC application on VC++ 2005 and I have hard time to handling the CString.
I have some charcter array and I want to convert it to CString but the old method does not work.
It work on old version but it cannot compile on VC++ 2005. Any suggestion for converting from char* to CString.Code:CString str; char c[] = "Hello"; str.Format("%s",c); AfxMessageBox(str)




Reply With Quote