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:Code:CString address = "127.0.0.1";
It's weird. Thanks for any answerCode:CString error = "Value entered is invalid. Please choose a number between 1 and ";