Latest CEF4Delphi and C++Builder
Posted: Tue Aug 10, 2021 9:48 pm
I have previously used CEF4Delphi in a C++Builder project that I had built in Tokyo. I have updated that project to Sydney 10.4.2 and decided to update CEF4Delphi to the latest version. I downloaded CEF4Delphi that uses CEF 92.0.25 which includes Chromium 92.0.4515.131. and installed compeonents with no issue. SimpleBrowse2 demo project compiles fine with Delphi and runs with no problems.
I ported the project to C++Builder. When I try to compile it. I get the following error:
[bcc32 Error] SimpleBrowser2.cpp(14): E2015 Ambiguity between 'Ucefapplication::GlobalCEFApp' and 'Ucefapplicationcore::GlobalCEFApp'
in this code:
try
{
GlobalCEFApp = new TCefApplication();
GlobalCEFApp->IgnoreCertificateErrors = true;
if( GlobalCEFApp->StartMainProcess() )
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->CreateForm(__classid(TForm1), &Form1);
Application->Run();
}
GlobalCEFApp->Free();
GlobalCEFApp = NULL;
}
Thanks,
Elias
I ported the project to C++Builder. When I try to compile it. I get the following error:
[bcc32 Error] SimpleBrowser2.cpp(14): E2015 Ambiguity between 'Ucefapplication::GlobalCEFApp' and 'Ucefapplicationcore::GlobalCEFApp'
in this code:
try
{
GlobalCEFApp = new TCefApplication();
GlobalCEFApp->IgnoreCertificateErrors = true;
if( GlobalCEFApp->StartMainProcess() )
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->CreateForm(__classid(TForm1), &Form1);
Application->Run();
}
GlobalCEFApp->Free();
GlobalCEFApp = NULL;
}
Thanks,
Elias