Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Delphi version

Post Reply
brche
Posts: 16
Joined: Tue Feb 08, 2022 10:29 pm

Delphi version

Post by brche »

Hi,
In uWVBrowserBase, you are checking {$IFDEF DELPHI26_UP} before using TNetEncoding. Using Delphi version 24 (Berlin) we get a warning that HTMLDecode is deprecated and we should use TNetEncoding.
(actually the error is: [dcc32 Hint] uWVBrowserBase.pas(2718): H2443 Inline function 'HTMLDecode' has not been expanded because unit 'System.NetEncoding' is not specified in USES list)

Brian
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Delphi version

Post by salvadordf »

Thanks for letting me know! :)

According to Embarcadero's website System.NetEncoding.TNetEncoding.URL was present even in Delphi XE7.

I'll fix those conditionals in the next update.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Delphi version

Post by salvadordf »

I just uploaded your fix. Thank you!
brche
Posts: 16
Joined: Tue Feb 08, 2022 10:29 pm

Re: Delphi version

Post by brche »

Thanks Salvador.
It looks like you forgot to remove the $IFDEF DELPHI26_UP in the uses clause.

Brian
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Delphi version

Post by salvadordf »

Fixed.
Thanks again!
Post Reply