Page 1 of 1

TCefRequestContextRef in 4606 builder

Posted: Fri Oct 01, 2021 1:59 pm
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.

Re: TCefRequestContextRef in 4606 builder

Posted: Fri Oct 01, 2021 3:19 pm
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

Re: TCefRequestContextRef in 4606 builder

Posted: Sun Oct 03, 2021 2:10 pm
by alpires2000
Thanks, solved. :D