Re: [twsocket] TProxyInfo for D2009

2008-12-08 Thread Maurizio Lotauro
Scrive Arno Garrels [EMAIL PROTECTED]: Paul wrote: I'm trying to use TProxyInfo with D2009. Since Wininet is not unicode enabled, It is. Only some parameters like host names etc. are of type LPSTR. All function and structures used by TProxyInfo are LPSTR, one LPCSTR and two LPTSTR. For

Re: [twsocket] TProxyInfo for D2009

2008-12-08 Thread Arno Garrels
Maurizio Lotauro wrote: Scrive Arno Garrels [EMAIL PROTECTED]: Paul wrote: I'm trying to use TProxyInfo with D2009. Since Wininet is not unicode enabled, It is. Only some parameters like host names etc. are of type LPSTR. All function and structures used by TProxyInfo are LPSTR, one

Re: [twsocket] TProxyInfo for D2009

2008-12-08 Thread Maurizio Lotauro
Scrive Arno Garrels [EMAIL PROTECTED]: [...] LPTSTR maps depending on the Unicode directive to either Ansi or Unicode, Yes I know so it should be enough to add just one line: if @InternetQueryOption = nil then begin {$IFDEF UNICODE} @InternetQueryOption :=