Hey,
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?
Hey,
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.