Daniel Kirsch wrote:
How do I wrap a function? Do you know of any simple example showing this?

First thing you need to be able to do is to create an XPCOM component. A simple example is in the samples directory of xpcom, mozilla/xpcom/sample.


You'd create a component, then add methods that match your DLL functions. These methods would then make the actual DLL calls. Now that you have an XPCOM component JS can then invoke the methods.

http://www.mozilla.org/catalog/architecture/xpcom/ is probably a good place to visit as well.

David Bradley


Reply via email to