UNICODE、_UNICODE、__TEXT、__T、_T、_TEXT、TEXT 等宏的出处头文件
转自:http://www.cnblogs.com/ini_always/archive/2011/05/20/2050517.html
关键字:字符映射宏 头文件出处
WinNT.h
1: #ifdef UNICODE // r_winnt
2: #define __TEXT(quote) L##quote // r_winnt
3: #else /* UNICODE */ // r_winnt4: #define __TEXT(quote) quote // r_winnt
5: #endif /* UNICODE */ // r_winnt6: #define TEXT(quote) __TEXT(quote) // r_winnt
tchar.h
1: #ifdef _UNICODE2: #define __T(x) L ## x3: #else /* ndef _UNICODE */4: #define __T(x) x5: #endif /* _UNICODE */
6: #define _T(x) __T(x)7: #define _TEXT(x) __T(x)
MFC 的 afxv_w32.h
1: #ifdef _UNICODE2: #define __T(x) L ## x3: #else /* ndef _UNICODE */4: #define __T(x) x5: #endif /* _UNICODE */
6: #define _T(x) __T(x)7: #define _TEXT(x) __T(x)