数据类型映射

在TCHAR.H 中定义的这些数据类型映射并依赖于程序中定义的常数 _UNICODE 或 _MBCS。

有关相关信息,请参见 使用 _MBCS 代码的TCHAR.H数据类型

一般文本数据类型映射

一般文本

数据类型名称

SBCS (_UNICODE,

_MBCS not

已定义)

_MBCS

定义为

_UNICODE

定义为

_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

无效(由预处理器移除)

无效(由预处理器移除)

L(将后面的字符或字符串转换成相应的 Unicode 形式)

请参见

参考

一般文本映射

常量和全局变量映射

例程映射

示例一般文本程序

使用一般文本映射