Maurizio Lotauro wrote:
>> so it should be enough to add just one line:
>> 
>> if @InternetQueryOption = nil then
>>   begin
>> {$IFDEF UNICODE}
>>     @InternetQueryOption := GetProcAddress(WinInetHandle,
>> 'InternetQueryOptionW');
>> {$ELSE}
>>     @InternetQueryOption := GetProcAddress(WinInetHandle,
>> 'InternetQueryOptionA');
>> {$ENDIF}
> 
> I'm in doubt about this. The remarks of INTERNET_PER_CONN_OPTION
> Structure say: 
> 
> "In Internet Explorer 5, only the ANSI versions of
> InternetQueryOption and InternetSetOption will work with the
> INTERNET_PER_CONN_OPTION structure. The Unicode versions will support
> the INTERNET_PER_CONN_OPTION structure in later versions of Internet
> Explorer." 
> 
> This is not very clear to me. Should I anyway use the Ansi version to
> keep the compability with IE5?
> Should I check the availibility of the Wide version, eventually only
> in D2009? Actually the component works starting Win95.

UNICODE is defined in Delphi 2009 and better only and executables 
built with Delphi 2009 run on Windows 2000 and better only.
Windows 2000 was released February 2000, IE 5.0 March 1999,
so IMHO no problem.

--
Arno Garrels

 
> 
> Bye, Maurizio.
> 
> ----------------------------------------------------
> This mail has been sent using Alpikom webmail system
> http://www.alpikom.it
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to