S
sorty
Hi,
I have read in many places that TCHAR can be 'char' or 'wchar_t'
depending on ANSI or UNICODE.
I have also read that LPTSTR is a long pointer to a TCHAR.
I am confused about the following. Please answer with yes/no and then
elaborate as you please..
1. Where is TCHAR, LPTSTR defined
2. Is TCHAR for MFC apps only? Can I use it in a standard console app?
3. Is LPTSTR for MFC apps only? Can I use it in a standard console
app?
4. Is TCHAR and LPTSTR portable to other platforms such as UNIX?
5. Why would I use LPTSTR when I can just use a pointer to TCHAR eg
TCHAR *ch[]
I have read in many places that TCHAR can be 'char' or 'wchar_t'
depending on ANSI or UNICODE.
I have also read that LPTSTR is a long pointer to a TCHAR.
I am confused about the following. Please answer with yes/no and then
elaborate as you please..
1. Where is TCHAR, LPTSTR defined
2. Is TCHAR for MFC apps only? Can I use it in a standard console app?
3. Is LPTSTR for MFC apps only? Can I use it in a standard console
app?
4. Is TCHAR and LPTSTR portable to other platforms such as UNIX?
5. Why would I use LPTSTR when I can just use a pointer to TCHAR eg
TCHAR *ch[]