Page 1 of 1

Use different versions of CEF4Delphi within the same project

Posted: Mon Mar 24, 2025 12:48 pm
by CyberStorm
Is it possible to somehow use different versions of CEF4Delphi within the same project? The goal is to use a specific version of CEF depending on the Windows version the application is running on — for example, CEF for Windows 7 or a newer CEF for more recent versions. Are there any options for dynamically loading the required version of CEF?

Re: Use different versions of CEF4Delphi within the same project

Posted: Mon Mar 24, 2025 3:48 pm
by salvadordf
Hi,

The last Chromium version with Windows 7 support was 109 and the latest version is 134.

CEF 109 was released two years ago and there are numerous breaking changes between those two versions.

CEF 109 and CEF 134 have many classes, constants, etc with the same name.

I can only think of two possibilities :
  • Create two versions of your application. One for Windows 7 and the other for Windows 10/11. Each version would use conditionals to use the right units and to avoid incompatibilities. Don't install any component in the IDE and create the browser controls at runtime.
  • Keep one version of your application but move all the browser code to two different projects: one for CEF 109 and the other for CEF 134. The main application would run the right CEF project executable for the current Windows version and it would control the browser using any kind of IPC you like.

Re: Use different versions of CEF4Delphi within the same project

Posted: Mon Mar 24, 2025 3:51 pm
by CyberStorm
Thank you!