#ifdef _UNICODE
/*
* Include <wchar.h> for wchar_t and WEOF if _UNICODE.
*/
#include <wchar.h>
/*
* Use TCHAR instead of char or wchar_t. It will be appropriately translated
* if _UNICODE is correctly defined (or not).
*/
#ifndef _TCHAR_DEFINED
#ifndef RC_INVOKED
typedef
wchar_t
TCHAR
;
typedef
wchar_t
_TCHAR;
#endif /* Not RC_INVOKED */
#define _TCHAR_DEFINED
#endif
#else /* Not _UNICODE */
/*
* TCHAR, the type you should use instead of char.
*/
#ifndef _TCHAR_DEFINED
#ifndef RC_INVOKED
typedef
char
TCHAR
;
typedef
char
_TCHAR;
#endif
#define _TCHAR_DEFINED
#endif
//这是tchar.h头文件里面的内容, 从这里面可以看出,TCHAR 和 _THCAR 完全是一样的