c++xulrunner

Is there a way to include a C++ library to a XUL desktop app?


Doing a bit of a research on Mozilla's XUL framework. I've built a desktop app on a Mac and now I'm wondering is it possible to include a dynamic library written in C++ to the app or use a C++ code? If yes, how can I do this?

Thanks, Peter


Solution

  • Yes, via XPCOM. You can't just include random libraries as JavaScript can't call native functions.