"Andy Sy" <andy@...> writes:
> TCHAR will not work under BCC.
You mean because BC doesn't define TCHAR in tchar.h? I would not
recommend to try to include the Windows headers stand-alone. You
should always include windows.h before you include any other Windows
SDK header, if only for the sake of portablity. If you do that you
should find that BC defines the TCHAR typedef.
> _TCHAR is supposed to be the ANSI standard. (See section 14.2 in
> http://www.microsoft.com/globaldev/fareast/mbcssg.asp#FOURTEEN under
Actually, that may be a misunderstanding partly on your side and
partly on the side of the MS "engineers" (details on request).
For short, it's not likely ISO or ANSI will ever introduce a _TCHAR
define, the C and C++ standards quite simply have a different
philosophy regarding i18n than MS. TCHAR and _TCHAR are defined in MS
Windows SDK headers and they are MS Windows specific types.
so long, benny