You should use a wide string literal, i.e.
SetConsoleTitleW(L"DD");
L, before the quote means that it is a string wchar_t*.
Also, for completeness, I have to say that in C ++ 11 new string literal prefixes are defined:
const char a[] = u8"for a UTF-8 string.";
const char_16_t b[] = u"for a UTF-16 string.";
const char_32_t c[] = U"for a UTF-32 string.";
as usual wikipedia contains a more detailed note.
source
share