Page 1 of 1

DOMVisitor and breaking changes

Posted: Wed Jul 15, 2020 2:29 pm
by PioPio
Hello Salvador,

I just have a compiler error from DOMVisitor, specifically in the procedure procedure DOMVisitor_OnDocAvailable on the statement

Code: Select all

browser.SendProcessMessage(PID_BROWSER, msg);
I understand this is part of the breaking changes therefore I have amended it into

Code: Select all

browser.MainFrame.SendProcessMessage(PID_BROWSER, msg); 

Now I have an issue in GlobalCEFApp_OnProcessMessageReceived, specifically in the statement

Code: Select all

TempVisitor := TCefFastDomVisitor2.Create(browser, DOMVisitor_OnDocAvailable);
because one parameter is missing.

How can I fix this one?

Many thanks
Alberto

Re: DOMVisitor and breaking changes

Posted: Wed Jul 15, 2020 3:29 pm
by PioPio
I have just noticed there are two DOMVisitor, one in the main demo folder and another one in the Delphi_VCL. Only the former shows the error, the VCL works correctly.
What is the difference between the examples in the two folders ?

Many thanks
Alberto

Re: DOMVisitor and breaking changes

Posted: Wed Jul 15, 2020 4:48 pm
by salvadordf
The GitHub repository only has CEF4Delphi/demos/Delphi_VCL/DOMVisitor and CEF4Delphi/demos/Lazarus/DOMVisitor

CEF4Delphi/demos/DOMVisitor was the old path of that demo but it was updated and moved to the Delphi_VCL directory long ago.

Re: DOMVisitor and breaking changes

Posted: Thu Jul 16, 2020 12:43 pm
by PioPio
Hi Salvador,

I must have had an old version of the demos which I have never deleted.
The new version is working😀

Thanks
Alberto