开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜