David Bradley schrieb:
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.

I hoped this would be a bit easier (eg. just using JavaScript).
As I understand it, I must write an idl file, and some C++ code implementing the defined functions from the idl file. I then have to compile it using the XPIDL compiler and register in in my chrome directory. Is that correct?


Is there anything easier than this?

Thanks
Daniel




Reply via email to