TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR in C++

In this article, we are going to learn about the TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR in C++ along with code examples.

Frequently, 1 or 2 bytes can be used to represent a character.
The ANSI standard, which is 1 byte in size, is used to represent all English characters.
ALL languages in the world are represented by Unicode, which is a 2 byte insize.

The Visual C++ compiler supports
TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR for ANSI and Unicode characters.

TCHAR

TCHAR is used to describe ANSI or Unico...

 •  0 comments  •  flag
Share on Twitter
Published on August 12, 2022 15:28
No comments have been added yet.