-
September 22nd, 2005, 02:42 AM
#1
Using CString in a console-application
Hello!
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 [6]' to 'ATL::CStringT<BaseType,StringTraits>')
But I can compile lines like:
CString s("Hello");
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|