A #define for either char or wchar_t, used for porting ancient windows applications
TCHAR
and related preprocessor-defines are used in two places:
- Porting ancient windows application to modern UTF-16 APIs.
- Describing APIs available in both ANSI and UTF-16 flavor.
If neither of the above fits for you, you really should not be using it:
Is TCHAR still relevant?
#ifdef _UNICODE
#define TCHAR wchar_t
// many others
#else
#define TCHAR char
// many others
#endif