问题描述
以前,我为 mozilla 3.6版和XulRunner 1.9.2 版创建了 XPCOM dll .
现在,我尝试为mozilla的最新版本(即4及更高版本)更新xpcom dll.
Now I try to update that xpcom dll for the mozilla recent versions namely 4 and above.
所以我下载了高于版本的Xul Runner,但是找不到 nsIGenericFactory.h .
So I downloaded Xul Runner above version but I couldn't find nsIGenericFactory.h.
如何在mozilla 4和更高版本中使用我的xpcom dll.
How to work my xpcom dll for the mozilla 4 and above versions.
实际上,我使用以下示例来开发XPCOM DLL.
Actually I used the following sample to develop XPCOM DLL.
http://www.iosart.com/firefox/xpcom/
谢谢..
推荐答案
由于Mozilla 4.0使用的是Gecko 2.0,因此适用于您的情况:
引用 壁虎2.0版中XPCOM的更改 :
Since Mozilla 4.0 is using Gecko 2.0 this applys to your situation:
Quoting the XPCOM changes in Gecko 2.0:
这样做之后,您将必须按照 https:中的说明重新编译所有XPCOM组件: //developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0
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
头文件位于以下站点上: nsIGenericFactory. h
The headerfile is provided on this site: nsIGenericFactory.h
这篇关于上面版本的xulrunner-2.0.en-US.win32.sdk中缺少nsIGenericFactory.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!