Share via


Data Type Mappings

These data-type mappings are defined in TCHAR.H and depend on whether the constant _UNICODE or _MBCS has been defined in your program.

For related information, see Using TCHAR.H Data Types with _MBCS Code.

Generic-Text Data Type Mappings

Generic-Text
Data Type Name
SBCS (_UNICODE,
_MBCS Not
Defined)

_MBCS
Defined

_UNICODE
Defined
_TCHAR char char wchar_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 or _TEXT No effect (removed by preprocessor) No effect (removed by preprocessor) L (converts following character or string to its Unicode counterpart)

See Also   Generic-text mappings, Constants and global variable mappings, Routine mappings, A sample generic-text program, Using generic-text mappings