c++macrosincludeg++string-literals

'_T' was not declared in this scope?


What file should I include to have the _T() macro? it converts text literals I think. I thought it is windows.h, but I have it included already.

Surprisingly, I could not find the answer on Google.


Solution

  • I found information you asked for in the MSDN under topic Unicode Programming Summary [archive.org].

    The answer is Tchar.h.