问题
Previously, I created XPCOM dll for the mozilla version 3.6 and XulRunner version of 1.9.2.
Now I try to update that xpcom dll for the mozilla recent versions namely 4 and above.
So I downloaded Xul Runner above version but I couldn't find nsIGenericFactory.h.
How to work my xpcom dll for the mozilla 4 and above versions.
Actually I used the following sample to develop XPCOM DLL.
http://www.iosart.com/firefox/xpcom/
Thanks..
回答1:
Since Mozilla 4.0 is using Gecko 2.0 this applys to your situation:
Quoting the XPCOM changes in Gecko 2.0:
Note that nsIGenericFactory.h has been removed.
References to nsIGenericFactory.h should be replaced with mozilla/ModuleUtils.h
After doing so, you would have to recompile all XPCOM components following the instructions from https://developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0
There is a topic about this problem in the mozilla forum too.
The headerfile is provided on this site: nsIGenericFactory.h
来源:https://stackoverflow.com/questions/8532850/nsigenericfactory-h-is-missing-in-the-above-version-of-xulrunner-2-0-en-us-win32