L
lallous
Hello
I never compiled my code using any other compiler than MS's VC++
I know that if the code written is purely ISO C++ compatible, then it should
compile fine.
How, how to allow unicode as well?
In MSVC, we have TCHAR.H that maps:
1)
strcmp and wcscmp to _tcscmp, with something like:
#ifdef UNICODE
#define _tcscmp wcscmp
#else
#define _tcscmp strcmp
#endif
2)we also have the _T macro which conditionally defines strings either as
ASCII or as unicode as:
#ifdef UNICODE
#define _T(x) L ## x
#else
#define _T(x) x
#endif
3)
char and wchar_t to TCHAR
What are the equivalent features in other compilers?
Please share your thoughts.
Regards,
Elias
I never compiled my code using any other compiler than MS's VC++
I know that if the code written is purely ISO C++ compatible, then it should
compile fine.
How, how to allow unicode as well?
In MSVC, we have TCHAR.H that maps:
1)
strcmp and wcscmp to _tcscmp, with something like:
#ifdef UNICODE
#define _tcscmp wcscmp
#else
#define _tcscmp strcmp
#endif
2)we also have the _T macro which conditionally defines strings either as
ASCII or as unicode as:
#ifdef UNICODE
#define _T(x) L ## x
#else
#define _T(x) x
#endif
3)
char and wchar_t to TCHAR
What are the equivalent features in other compilers?
Please share your thoughts.
Regards,
Elias