Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vnl/ff8c0b73a287ce279d782cc472d39287 to your computer and use it in GitHub Desktop.
Save vnl/ff8c0b73a287ce279d782cc472d39287 to your computer and use it in GitHub Desktop.
Quoting Brian Kramer on the MSDN forums: https://social.msdn.microsoft.com/forums/vstudio/en-US/1b994ff3-da28-46a8-90ef-6c7fab8dcd21/lpctstr#e4e05bbe-7cb8-4321-97de-fcf1c435952e
LPCTSTR = L‌ong P‌ointer to a C‌onst T‌CHAR STR‌ing (Don't worry, a long pointer is the same as a pointer. There were two flavors of pointers under 16-bit windows.)
Here's the table:
LPSTR = char*
LPCSTR = const char*
LPWSTR = wchar_t*
LPCWSTR = const wchar_t*
LPTSTR = char* or wchar_t* depending on _UNICODE
LPCTSTR = const char* or const wchar_t* depending on _UNICODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment