数据类型映射Data Type Mappings

TCHAR.H 中定义了这些数据类型映射,具体取决于程序中是否定义了常量 _UNICODE_MBCSThese data-type mappings are defined in TCHAR.H and depend on whether the constant _UNICODE or _MBCS has been defined in your program.

有关相关信息,请参阅将 TCHAR.H 数据类型用于 _MBCS 代码For related information, see Using TCHAR.H Data Types with _MBCS Code.

一般文本数据类型映射Generic-Text Data Type Mappings

一般文本Generic-text

数据类型名data type name
SBCS(_UNICODE、SBCS (_UNICODE,

_MBCS 未_MBCS not

定义)defined)
_MBCS_MBCS

已定义defined
_UNICODE_UNICODE

已定义defined
_TCHAR char char wchar_t
_tfinddata_t _finddata_t _finddata_t _wfinddata_t
_tfinddata64_t __finddata64_t __finddata64_t __wfinddata64_t
_tfinddatai64_t _finddatai64_t _finddatai64_t _wfinddatai64_t
_TINT int int wint_t
_TSCHAR signed char signed char wchar_t
_TUCHAR unsigned char unsigned char wchar_t
_TXCHAR char unsigned char wchar_t
_T_TEXT_T or _TEXT 无效果(由预处理器删除)No effect (removed by preprocessor) 无效果(由预处理器删除)No effect (removed by preprocessor) L(将以下字符或字符串转换为其 Unicode 对应项)L (converts following character or string to its Unicode counterpart)

另请参阅See Also

一般文本映射 Generic-Text Mappings
常量和全局变量映射 Constant and Global Variable Mappings
例程映射 Routine Mappings
示例一般文本程序 A Sample Generic-Text Program
使用一般文本映射Using Generic-Text Mappings