September 22nd, 2005, 02:42 AM
Using CString in a console-application
I used the wizard to create a Win32-Console-Application, but with MFC-support to use classes like CString.
Now I cannot compile lines like:
CString s = "Hello";
(error C2440: 'initializing' : cannot convert from 'const char ' to 'ATL::CStringT<BaseType,StringTraits>')
But I can compile lines like:
I have some code I want to re-use which has function-deklarations like:
void MyFund(CString sParam = "default")
which don't work anymore as well, but which work fine of course in a MFC/dialog-based-application for example.
Any idea what I can do?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!