nsIGenericFactory.h is missing in the above versio

2019-06-28 04:08发布

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条回答
可以哭但决不认输i
2楼-- · 2019-06-28 04:41

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

查看更多
登录 后发表回答