Full CEF based MFC SDI Browser

Built a cool app using CEF that you'd like to share with the community? Talk about it here.

Re: Full CEF based MFC SDI Browser

Postby ScottV » Wed Jan 06, 2016 4:43 pm

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
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: Full CEF based MFC SDI Browser

Postby ScottV » Thu Jan 21, 2016 1:39 pm

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
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: Full CEF based MFC SDI Browser

Postby narko » Fri Sep 28, 2018 11:45 am

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...
narko
Newbie
 
Posts: 8
Joined: Thu Jan 25, 2018 11:56 am

Previous

Return to Apps Discussion

Who is online

Users browsing this forum: No registered users and 2 guests