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
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
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 :=