Hi,
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 [10]' to 'ATL::CStringT<BaseType,StringTraits>'

Code:
CString address = "127.0.0.1";
I have used this in another program and the compiler does not give me any issue:
Code:
CString error = "Value entered is invalid. Please choose a number between 1 and ";
It's weird. Thanks for any answer
Amish