Hi,
Iam new to Mac OS and also developing XPCOM components.
I need to create a XPCOM Component, make it scriptable so that I can call
the component functions from JavaScript.
I need to create a plugin to Mozilla browser.
Iam using FireFox 1.5.0.6.
I tried a sample on Windows XP (using visual studio) and the component was
working perfectly. i.e from my html file I was able to call component
methods.
I need to create the component on Mac OSX also.
So,
1. I downloaded darwinports.
2. Downloaded Mozilla Source code.
3. Built Mozilla to get Gecko sdk.
Then,I tried the same sample and wrote a Makefile to build the XPCOM
Component.
After a successful make command I got .dylib file.
1. I placed the .dylib and .xpt file in
/Applications/Firefox.app/Contents/MacOS/components
2. Deleted xpti.dat and comreg.dat from
/Users/Admin/Library/Application
Support/Firefox/Profiles/jqh10lp7.default
3. Then I opened the html file, in which I wrote the javascript code to
access
the component.
Iam getting an error message:
[JavaScript Application]
[Exception... "Component returned failure code: 0x80570015
(NS_ERROR_XPC_CI_RETURNED_FAILURE)
[nsIJSCID.createInstance]" nsresult:"0x80570015
(NS_ERROR_XPC_CI_RETURNED_FAILURE)" location:"JS frame ::
<file:///Path-of-my-javascript-file/MyComponent.js>file:///Path-of-
my-javascript-file/MyComponent.js
::MyComponentFunction :: line 6" data:no]
I followed the same steps in WindowsXP and it worked , Iam not able to
figure out where I went wrong on MacOS X.
Any help would be appritiated.
I have been trying on Mac OSX from last 2 weeks and now I have no clue on
how to proceed.
Iam attaching my code to this mail.
_________________________________________________________________
NRIs: Send Money FREE! Go ahead and register now!
http://ads.mediaturf.net/event.ng/Type=click&FlightID=20273&AdID=65989&TargetID=11172&Targets=11172&Values=202,414,1093,1264,3122&Redirect=http:%2F%2Fwww.icicinri.net%2Fmoney2india%2F%3Fm2i%3DBAC-MSN%26att%3DMSNTLM2I18CHAR%26rfr%3DMSNTLM2I18CHAR
_______________________________________________
dev-tech-xpcom mailing list
dev-tech-xpcom@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xpcom