[PATCH] winsock related changes for w32api

Dmitry Timoshkov dmitry@baikal.ru
Sun Aug 25 19:33:00 GMT 2002

"Bart Oldeman" <bart.oldeman@btinternet.com> wrote:

> > Shouldn't structs and protos  be Unicoded properly, rather than using LPTSTR
> LPTSTR should be fine, since:
> <winnt.h>:
> and
> #ifdef UNICODE
> typedef WCHAR TCHAR;
> #else
> typedef CHAR TCHAR;
> #endif

No, LPTSTR is not enough in order to use ANSI and Unicode APIs simultaneously.
Have a look at the Platform SDK headers how to do it properly.


More information about the Cygwin-patches mailing list