Reputation: 32217
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?
Upvotes: 2
Views: 1189
Reputation: 32073
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.
Upvotes: 2