Archived

This topic is now archived and is closed to further replies.

Briskon

_T macro

Recommended Posts

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.

Share this post


Link to post
Share on other sites
It turns "mystring" into a unicode. I think the macro expands into _T( string ) = L ## string = L ## "mystring" = L"mystring"

Share this post


Link to post
Share on other sites