Does anyone know how I can #include a C header file into an IDL file? It seems like xpidl doesn't do anything with the .h file other than pass it through. Do I have to flip a build flag or change the extension of the input file? I guess I could run the preprocessor myself -- does anyone know of an example in the Mozilla tree?

My component acts as a wrapper for some external code which happens to live in a DLL. The DLL functions use special constants which are defined in a .h file. The easiest (only?) way to expose the constants to JavaScript are by putting them in the IDL interface.

So I want to have IDL lines which look something like
    const unsigned long SeriesOrder         = EID_SERIESORDER;
where the RHS is a constant defined in the .h file.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to