Re: CString not working as advertised


Thanks for the help. Changing the project settings so that they didn't
specify UNICODE did the trick.


In article <#jkRTX#YGHA.1192@xxxxxxxxxxxxxxxxxxxx>, mark
[__OKTHISISFAKE_]yr@xxxxxxxxxxxxxxxxxxxxxxxxxxx says...
const char* is not what CString has by default in 2005, its const wchar_t*.

Use CStringA (for ASCII, and hence char*) or CStringW (for UNICODE, and
hence wchar_t* ).

If you want to write apps that easily change (why?) then use CString and it
will change between CStringA and CStringW depending upon the UNICODE project
settings (instead of mbcs).