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.

TCefRequestContextRef in 4606 builder

Post Reply
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

TCefRequestContextRef in 4606 builder

Post by alpires2000 »

Hi Salvador, I was using builder 4389 and now i'm using 4606, but there is an error in my code on the line:

Code: Select all

TempContext := TCefRequestContextRef.New('', '', False, False, False);
Erro: E2250 There is no overloaded version of 'New' that can be called with these arguments

How can I fix this?
Thanks.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: TCefRequestContextRef in 4606 builder

Post by salvadordf »

Sorry, I missed that change in the "breaking changes" thread.

The parameters in that function changed and now you have to create the request context like this :
https://github.com/salvadordf/CEF4Delphi/blob/0bc8f373f863dfd583dcdbf23e0c2aec6ac4f901/demos/Delphi_VCL/MDIBrowser/uChildForm.pas#L225

See the complete parameter list here :
https://github.com/salvadordf/CEF4Delphi/blob/0bc8f373f863dfd583dcdbf23e0c2aec6ac4f901/source/uCEFRequestContext.pas#L92
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Re: TCefRequestContextRef in 4606 builder

Post by alpires2000 »

Thanks, solved. :D
Post Reply