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.

DOMVisitor and breaking changes

Post Reply
PioPio
Posts: 42
Joined: Sun Nov 05, 2017 10:25 pm

DOMVisitor and breaking changes

Post 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
PioPio
Posts: 42
Joined: Sun Nov 05, 2017 10:25 pm

Re: DOMVisitor and breaking changes

Post 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
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: DOMVisitor and breaking changes

Post 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.
PioPio
Posts: 42
Joined: Sun Nov 05, 2017 10:25 pm

Re: DOMVisitor and breaking changes

Post 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
Post Reply