Page 2 of 2

Re: Full CEF based MFC SDI Browser

PostPosted: Wed Jan 06, 2016 4:43 pm
by ScottV
For the CEF-MFC sample applicaotion adding "CefDoMessageLoopWork" just before "CefShutdown" on line 217 will prevent the error when exiting the application.

Code: Select all
   // shutdown CEF
   if( m_bCEFInitialized )
   {
      // closing stop work loop
      m_bCEFInitialized = FALSE;
      // release CEF app
      m_cefApp = NULL;
      // shutdown CEF
      CefDoMessageLoopWork();
      CefShutdown();
   }


--Scott

Re: Full CEF based MFC SDI Browser

PostPosted: Thu Jan 21, 2016 1:39 pm
by ScottV
The CEF-MFC example application repository has been updated with support for the newer versions of CEF up to version 2526.

https://bitbucket.org/TSS_DEV/cef-mfc

--Scott

Re: Full CEF based MFC SDI Browser

PostPosted: Fri Sep 28, 2018 11:45 am
by narko
Hi everyone,

Sorry to dig out that topic but I'm really struggling to get CEF working without single_process mode in an MFC app (see that thread https://magpcss.org/ceforum/viewtopic.php?f=6&t=16278).

As I've found this topic, I've downloaded it, compile it and run it with CEF 3.3282.1734.g8f26fe0. And result are the same than the above linked thread. The browser is created but nothing is displayed in my MFC window if single_process = false and everything works fine if single_process = true.

Would someone have some time to give it a try or have a look a the code and help me to understand what is going on ? :)

https://ufile.io/ulca1 (this is a zip containing the project of ScottV with slighty modification to get it work with CEF 3.3282.1734.g8f26fe0 build)
(the project needs a CEF_PATH environment variable to compile and link or simply change the include and library directories ;) )

Thanks a lot.

[EDIT] It is working in Release but not in Debug...