Gecko Javascript to c++
Im using the xulrunner example application and im trying to work out how to call into c++ code from javascript. I have googled and the best i came up 开发者_开发问答with was to use nsIDOMEventListener interface but have no idea how.
Any ideas?
What C++ code, your code? That's typically done by creating an XPCOM component in C++.
In the most recent builds (1.9.2, I believe) js-ctypes library is included, which is a simple way to call C functions from JS from a DLL and is similar to ctypes in python and others.
精彩评论