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.

Problem with demo example

Post Reply
ForumReader
Posts: 8
Joined: Wed Mar 18, 2020 4:18 am

Problem with demo example

Post by ForumReader »

Hello.
Just checked: fresh installed CEF 80.0.8 on Berlin.
All demos compile well except one: SimpleOSRBrowser show more than 51 syntax error :shock:
.
err_osrdemo.png
.
Can you check it, please? :oops:
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem with demo example

Post by salvadordf »

Thanks for reporting the issue!

Judging by the screenshot I think the touch events and types are not supported in that Delphi version.
I'll create a separate demo with OSR + touch support.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem with demo example

Post by salvadordf »

Please, download CEF4Delphi again and try the SimpleOSRBrowser demo.

Let me know if I missed something.

Edit : I see that some types are missing in not so old Delphi versions. Try adding this unit to the demo if you still miss those types :
https://github.com/ahausladen/ObjectPas ... ointer.pas
ForumReader
Posts: 8
Joined: Wed Mar 18, 2020 4:18 am

Re: Problem with demo example

Post by ForumReader »

After adding to project "WinApi.WMPointer.pas" most of errors was fixed.
But problem still present (4 errors)
.
err_osrdemo2.png
.
But any other demo, for example OSRExternalPumpBrowser compiled without errors :?
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem with demo example

Post by salvadordf »

The latest CEF4Delphi update had new TBufferPanel.BufferDraw arguments that were needed in order to fix an issue with SELECT HTML elements.

Update CEF4Delphi following these steps :
https://www.briskbard.com/forum/viewtop ... =772#p3481

I don't have Delphi Berlin installed.
Can you make a list with the variable types that are missing in that version?
It would be helpful to fix these building issues.

Thanks!
ForumReader
Posts: 8
Joined: Wed Mar 18, 2020 4:18 am

Re: Problem with demo example

Post by ForumReader »

Now it compile well except one:
E2003 Undeclared identifier: 'IMAGE_FILE_LARGE_ADDRESS_AWARE
I just insert
const IMAGE_FILE_LARGE_ADDRESS_AWARE = $0020;
before flag and now demo working well, thanks!
ipatruni
Posts: 1
Joined: Thu Jun 30, 2022 12:37 pm

Re: Problem with demo example

Post by ipatruni »

Hi,

I have been following this thread, and it helped me a lot to solve almost all issues to finally get this SimpleOSRBrowser compiled in Delphi 7.
I am using Delphi 7 and cef_binary_102.0.8+g60bd108+chromium-102.0.5005.61_windows32

But there is one casting issue that I am not capable of fixing. The following two lines return the error:

[Error] uSimpleOSRBrowser.pas(566): Array type required
[Error] uSimpleOSRBrowser.pas(567): Array type required

The lines that generate this error are 566 e 567 in TForm1.chrmosrPaint (bellow):
src := @PByte(buffer)[TempSrcOffset];
dst := @PByte(TempBufferBits)[TempDstOffset];

Can you help me to do the correct CASTING in DELPHI 7?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem with demo example

Post by salvadordf »

Try this :
https://stackoverflow.com/questions/53818802/how-to-fix-error-array-type-required-in-delphi
Post Reply