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.

Why method "CheckCEFLibrary" is protected ?

Post Reply
michal@dorfin.waw.pl
Posts: 41
Joined: Sun Feb 05, 2017 8:53 am

Why method "CheckCEFLibrary" is protected ?

Post by michal@dorfin.waw.pl »

I'd like to handle "wrong CEF library" version by myself. Before I try to start execute: GlobalCEFApp.StartMainProcess.
I can disable the error message with: GlobalCEFApp.ShowMessageDlg set to FALSE
but I cannot execute "GlobalCEFApp.CheckCEFLibrary" (protected) just to validate the version and if there is any problem - I want to show the user proper options to resolve the issue.
I don't want to make any inheritance to TCefApplicationCore to avoid any possible complications in the future.
Can You please "unprotect" this function in future source code release ?
User avatar
salvadordf
Posts: 4113
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Why method "CheckCEFLibrary" is protected ?

Post by salvadordf »

Hi,

I just uploaded a new CEF4Delphi version to GitHub with CheckCEFLibrary in the public section.

If you prefer to check the binaries differently you can also call CheckSubprocessPath, CheckDLLs, CheckResources, CheckLocales, CheckDLLVersion, GetDLLHeaderMachine and Is32BitProcess manually. All of them are in uCEFMiscFunctions.pas
Post Reply