NsIGenericFactory.h is missing from the above version of xulrunner-2.0.en-US.win32.sdk

I used to create an XPCOM dll for Mozilla version 3.6 and version XulRunner version 1.9.2 .

Now I am trying to update this xpcom dll for the latest versions of mozilla, namely 4 and above.

So, I downloaded Xul Runner over the version, but could not find nsIGenericFactory.h .

How to work with xpcom dll for mozilla versions 4 and higher.

In fact, I used the following sample to develop the XPCOM DLL.

http://www.iosart.com/firefox/xpcom/

Thanks..

+4
source share
1 answer

Since Mozilla 4.0 uses Gecko 2.0, this applies to your situation:
Quoting XPCOM Changes in Gecko 2.0 :

Note that nsIGenericFactory.h has been deleted.
Links to nsIGenericFactory.h should be replaced by mozilla / ModuleUtils.h

After that, you will have to recompile all XPCOM components in accordance with the instructions https://developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0

There is a topic about this issue in the mozilla forum .


The header file is provided on this site: nsIGenericFactory.h

+6
source

Source: https://habr.com/ru/post/1386678/


All Articles