MozTW 討論區
https://forum.moztw.org/

xpcom開發疑問
https://forum.moztw.org/viewtopic.php?f=18&t=40277
1 頁 (共 1 頁)

發表人:  icool [ 2013-09-03, 13:22 ]
文章主題 :  xpcom開發疑問

小弟我第一次研究xpcom所以我依照網路上提供的範例http://cnblogs.com/phinecos/archive/2008/04/25/1171614.html
用c++寫dll給firefox使用
以下是我extension的結構
helloworld.xpi
chrome
helloworld.jar
component
IMyComponent.dll
IMyComponent.xpt
install.js
install.rdf
chrome.manifest

可是我遇到一個問題就是,當我把這個helloworld.xpi丟進firefox安裝,用javascript調用這個dll時會出現
TypeError: Components.classes['@mydomain.com/XPCOMSample/MyComponent;1'] is undefined
可以請問一下各位前輩,我是哪一個環節出了問題?還是extension有缺少甚麼?或是這個方法已經不行用了?

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/