Feb 15, 2013 at 4:54am
I tried it like this, but it didn't work.
CString str = "abcde";
printf("str = %s\n", str.getBuffer());
-> output : a
printf("str = %s\n", (LPCTSTR)str);
-> output : a
I want to print all of characters the string has. How ?
Feb 15, 2013 at 11:32am
CString is from MFC, and both are different as I know.
Anyways, thanks