Page 1 of 1

why OnContextCreated do not be called

PostPosted: Wed Oct 23, 2019 6:17 pm
by 1945083536
hi, i'm beginner to CEF. i want to implement a feature that call c++ function from JS.
below is my steps:
1, load a page just like cefsimple
2, modify TestCefApp just like below:
Code: Select all
class TestCefAPP : public CefApp, public CefBrowserProcessHandler, public CefRenderProcessHandler

and then, override the OnContextCreated and GetRenderProcessHandler ( with implement that return this)

there create function in OnContextCreated.

but OnContextCreated never be called.

i googled for a bit long time and could anyone give me any suggestions? there have some topices related to the same issue but there no useful conclusion.

thanks