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.
Use different versions of CEF4Delphi within the same project
-
- Posts: 2
- Joined: Mon Mar 24, 2025 12:43 pm
Use different versions of CEF4Delphi within the same project
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?
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Use different versions of CEF4Delphi within the same project
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 :
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.
-
- Posts: 2
- Joined: Mon Mar 24, 2025 12:43 pm