IT/C++, MFC

LPCSTR, LPCTSTR, TCHAR

가성비몬 2023. 3. 8. 11:37

LPCSTR, LPCTSTR
TCHAR

 

LP: Long Pointer, 16bit

LPCSTR: Long Pointer Constant STRing = const char* = 널 문자로 끝나는 윈도우 문자열 상수의 포인터 (const LPSTR)

LPCTSTR: Long Pointer Constant T_STRing = const tchar* = 널 문자로 끝나는 유니코드 또는 윈도우 문자열 상수의 포인터 

 

참고자료

1. https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types

 

Windows Data Types (BaseTsd.h) - Win32 apps

The data types supported by Windows are used to define function return values, function and message parameters, and structure members.

learn.microsoft.com

2. 김용성, Visual C++ 6 완벽가이드 2nd Edition, 영진닷컴