Page 1 of 1

Re: How do I use CEF Components in a DLL form (Delphi)

Posted: Fri Jul 06, 2018 9:53 am
by salvadordf
Hi,

I've never tried to put all CEF4Delphi code inside a DLL but I can suggest you this :
  • CEF4Delphi can only be initialized and finalized outside the DLL's initialization and finalization sections. Create a couple of custom functions to initialize and finalize CEF4Delphi manually.
  • CEF3 can only be initialized once per process. This means that you can only call CEF4Delphi.StartMainProcess once.
  • You must use a different EXE for the subprocesses.

Re: How do I use CEF Components in a DLL form (Delphi)

Posted: Fri Jul 06, 2018 2:48 pm
by salvadordf
Please, download CEF4Delphi again.

There's a new demo called DLLBrowser that includes CEF4Delphi in a DLL and shows a simple browser in a child form. Please, read the code comments.

Re: How do I use CEF Components in a DLL form (Delphi)

Posted: Sat Jul 14, 2018 6:33 am
by salvadordf
HPW wrote: Sat Jul 14, 2018 5:21 amWill this (DllBrowser) work also in OldCef4Delphi?
Yes, it works with a small modification.

I just uploaded it to GitHub.