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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to compile DOMVisitor with Delphi 7

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to compile DOMVisitor with Delphi 7

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