Page 1 of 1

Problem with demo example

Posted: Wed Mar 18, 2020 5:43 am
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:

Re: Problem with demo example

Posted: Wed Mar 18, 2020 7:46 am
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.

Re: Problem with demo example

Posted: Wed Mar 18, 2020 9:03 am
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

Re: Problem with demo example

Posted: Fri Mar 20, 2020 3:45 am
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 :?

Re: Problem with demo example

Posted: Fri Mar 20, 2020 10:29 am
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!

Re: Problem with demo example

Posted: Fri Mar 20, 2020 11:08 am
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!

Re: Problem with demo example

Posted: Thu Jun 30, 2022 12:47 pm
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?

Re: Problem with demo example

Posted: Thu Jun 30, 2022 3:06 pm
by salvadordf
Try this :
https://stackoverflow.com/questions/53818802/how-to-fix-error-array-type-required-in-delphi