Returning data from C++ on invokeMethod #190
Closed
emanuele-f
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi @emanuele-f, glad to see you have solved the problem with cefQueryRequest
unfortunately, this is not possible, it's is up to the architecture of CEF, when you use invokeMethod from JS to call the method in C++, you must know the JS is executed in CEF renderer process while the C++ method is executed in browser process and CEF only provides an asynchronous IPC mechanism for communication. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
invokeMethod makes it convenient to call C++ code from Javascript. However it seems like it's not possible to return data to javascript. It would be great if invokeMethod allowed returning a string to Javascript.
Edit: I missed the
cefQueryRequest
method, which make it possible to accomplish this. I think it would be better to merge the methods into one, as getting a result from a call is a recurrent taskBeta Was this translation helpful? Give feedback.
All reactions