i have a siily problem with CString ( MFC project in VC++6) . I don't understand why!!!
There is a line " CString line = _T("abc") " in my project, I think the value of line = "abc", but when debugging,in watch windown line = {a}.
Please tell me why? Thanks
It might that you're building a Unicode build but have not told the debugger to display unicode strings?
If so...
- use "Tools"\"Options" to open the Options dialog
- select the "Debugger" tab
- check the "Display unicode strings" checkbox
Andy
PS As a Unicode string looks like H\0e\0l\0l\0o\0 in memory, you can see how it would display if the debugger though the memory contained a char string!
I have created a simple project to check, in watch windown line = {abc} . Then I check
the "Display unicode strings" checkbox but check box is not checked. So this is not involve in. But in my real project doesn't display line = {abc}.