nsIGenericFactory.h is missing in the above version of xulrunner-2.0.en-US.win32.sdk

空扰寡人 提交于 2019-12-23 15:12:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!