_T macro

Started by
1 comment, last by Briskon 20 years, 9 months ago
What does the _T("mystring") macro do? It''s in the include file.
Advertisement
If you have defined UNICODE, then it expands into L"mystring", the unicode version. If not, then it is simply "mystring", the ANSI version. It is basically a way of avoiding littering source files with #ifdefs every time you want to use a string literal.
It turns "mystring" into a unicode. I think the macro expands into _T( string ) = L ## string = L ## "mystring" = L"mystring"

This topic is closed to new replies.

Advertisement