This is all I wrote, when I run the following the application crash.
What else do I have to implement to get a minimal working code? I'm using CEF3 v. 3.1650.1562
- Code: Select all
class ChromeApp : public CefApp {
public:
virtual void OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line) {
;
}
virtual void OnRegisterCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar) {
;
}
virtual CefRefPtr<CefResourceBundleHandler> GetResourceBundleHandler() {
return NULL;
}
virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() {
return NULL;
}
virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() {
return NULL;
}
private:
IMPLEMENT_REFCOUNTING(ChromeApp);
};
CefRefPtr<ChromeApp> app;
CEF_API int CefInit(char *logpath)
{
app = new ChromeApp;
CefMainArgs main_args(GetModuleHandle(0));
// Populate this structure to customize CEF behavior.
CefSettings settings;
// Initialize CEF in the main process.
return CefInitialize(main_args, settings, app.get()); <---- CRASH HERE
}