The string "Hello" is an ANSI string. With Unicode builds, you must use a wide string by prefixing the string with the letter
L
. To be independant of the the Unicode setting, you can use the
_T()
macros which will set the prefix if necessary:
CString mytext = _T("Hello");