weird CString problem
I have just encountered a problem that is confusing. I have used Cstring before in mfc applications and it has never given me any issue but in a new project I am getting this error:
error C2440: 'initializing' : cannot convert from 'const char ' to 'ATL::CStringT<BaseType,StringTraits>'
I have used this in another program and the compiler does not give me any issue:
CString address = "127.0.0.1";
It's weird. Thanks for any answer
CString error = "Value entered is invalid. Please choose a number between 1 and ";
The problem was that when creating the program in ms vs 2005, the unicode libraries were used instead of regular ones . In that case Cstring would become CstringA.