資料類型對應Data Type Mappings

這些資料類型對應都是在 TCHAR.H 中定義,並視程式中是否定義常數 _UNICODE_MBCS 而定。These data-type mappings are defined in TCHAR.H and depend on whether the constant _UNICODE or _MBCS has been defined in your program.

如需相關資訊,請參閱使用含有 _MBCS 程式碼的 TCHAR.H 資料類型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