MSVS2010 Release Build Error regarding CString::Compare wanting a wide character string
Posted on 2014-03-24
I am trying to build a Release build of my C++ project (for the first time) within MSVS2010 and the compiler has flagged an error within CString::Compare
error C2664: 'ATL::CStringT<BaseType, StringTraits>::Compare' : cannot convert parameter 1 from 'const char ' to 'const wchar_t *'
I see that Character Set (General Tab of config properties of project properties) is set to Use Unicode Character Set.
Character Set for my Debug build was "Not Set" which worked fine.
Is this what I get for not using the TCHAR macro T("foolish string") all over the place.