Write a program to show the function of TCHAR used in Windows Programming?
Write a program to show the function of TCHAR used in Windows Programming?
- TCHAR is the data type that is used in Unicode for the generic character data type.
- It is used to hold the 1-byte ASCII characters that are standard format for the characters.
- It also uses wide 2-byte Unicode character to use the macro and the data type that have the similar manner on all the platforms.
- The program is as follows;
#ifdef UNICODE
#define TCHAR WORD
#else
#define TCHAR BYTE
#endif