[PATCH] winsock related changes for w32api
Sun Aug 25 19:33:00 GMT 2002
"Bart Oldeman" <email@example.com> wrote:
> > Shouldn't structs and protos be Unicoded properly, rather than using LPTSTR
> LPTSTR should be fine, since:
> typedef TCHAR *LPTCH,*PTSTR,*LPTSTR,*LP,*PTCHAR;
> #ifdef UNICODE
> typedef WCHAR TCHAR;
> typedef CHAR TCHAR;
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