creatition of XPCOM components

2019-09-07 00:17发布

问题:

I'm creating an XPCOM component using a tutorial as a reference. However, when I run the following command it completes successfully but doesn't produce any .h file:

xpidl -m header -I [XUL_RUNNER SDK\IDL] myfile.idl

Why is that? Is XPCOM outdated?

回答1:

No, XPCOM is not outdated but this tutorial is. The documentation recommends using pyxpidl:

header.py -I [XUL_RUNNER SDK\IDL] -o myfile.h myfile.idl