Created
December 29, 2012 19:17
-
-
Save anonymous/4408772 to your computer and use it in GitHub Desktop.
CefInitialize failure code example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int InitializeCefApplication(HINSTANCE hInstance,const CefSettings settings) | |
{ | |
CefMainArgs main_args(hInstance); | |
CefRefPtr<CefApp> app(new ClientApp); | |
// Execute the secondary process, if any. | |
int exit_code = CefExecuteProcess(main_args, app.get()); | |
if (exit_code >= 0) | |
return exit_code; | |
// Initialize CEF. | |
CefInitialize(main_args, settings ,app); | |
return -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment