I thought using TCHAR, and setting the character set to UNICODE in Visual Studio, maybe now I could get results in wide character ie 16 bits Unicode system, but it is not working.
This is my code:
#include<Windows.h> //to use windows API
#include<iostream>
int main()
{
TCHAR a[] = TEXT("This is not ANSI anymore! Olé!"); //8bits each char
wchar_t b[] = L"This is the Unicode Olé!"; //16 bits each char
std::cout << a << "\n";
std::wcout << b << "\n";
return 0;
}
So I thought, after defining TCHAR, I could make use of:
#ifdef UNICODE
#define std::cout std::wcout
#else
#define std::cout std::cout
#endif
But still, my output is in hex for TCHAR a[], but why? It should use wcout automatically, right?

