Page 1 of 1

Re: How to compile DOMVisitor with Delphi 7

Posted: Fri Aug 31, 2018 8:01 am
by salvadordf
Hi Tsuyoshi,
tsuyoshi iwasaki wrote: Fri Aug 31, 2018 12:40 am When compiling DOMVisitor with Delphi 7, an error occurs at line 302 of uDOMVisitor.pas.
How do I compile DOMVisitor with Delphi 7?
Here is the program code of line 302.
"GlobalCEFApp.OnProcessMessageReceived := GlobalCEFApp_OnProcessMessageReceived;"
I don't have a Delphi 7 license but this seems to be the same problem Lazarus and FPC have with that assignment.

I can't test this fix but you probably need to move that procedure to the public section of TDOMVisitorFrm. It would be executed with DOMVisitorFrm.GlobalCEFApp_OnProcessMessageReceived. Then you can assign it like this :

Code: Select all

GlobalCEFApp.OnProcessMessageReceived := DOMVisitorFrm.GlobalCEFApp_OnProcessMessageReceived;
Please, consider using Delphi Community Edition to test all the demos.
It's free and CEF4Delphi works without modifications :
https://www.embarcadero.com/products/delphi/starter