태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

_T 란?

지식/VC++ 2008/03/12 17:51

유니코드에서는 L로 처리하게끔 만든 매크로이다..
가령 CString = "abcde"
에서

SBCS나 MBCS일 경우
CString = "abced"이나

유니코드의 경우는

CString = L"abced"로 처리될것이다

MSDN참조

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

_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 or _TEXT

No effect (removed by preprocessor)

No effect (removed by preprocessor)

L (converts following character or string to its Unicode counterpart)

크리에이티브 커먼즈 라이선스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
Google
tags :
Trackback 0 : Comment 0

Write a comment

◀ PREV : [1] : ... [2] : [3] : [4] : [5] : [6] : [7] : [8] : [9] : [10] : ... [249] : NEXT ▶