I am still unable to get the component to work.
I am unable to compile my component code in the 1.8 SDK .
I get the following link error
"error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned int __cdecl NS_NewGenericModule2(struct nsModuleInfo *,class nsIModule * *)" (__imp_?NS_NewGenericModule2@@YAIPAUnsModuleInfo@@PAPAVnsIModule@@@Z) referenced in function _NSGetModule"
On comparing this with the 1.7 SDK, i find that the size of the xpcom.lib is just 10KB in SDK1.8 but it is 491KB in 1.7
So, if i were to replace the xpcom.lib file of 1.8 with the one in 1.7, it compiles fine. However, it still fails to register my component.
also, the link error happens in 1.8 SDK only because of the follwing MACRO that i use in the ComponentModule
NS_IMPL_NSGETMODULE("MyModule", components)
If i comment it out, it works fine.
Has anyone else faced the same problem or know of any way i can get around this so as to make my component work on 1.5?
Thanks,
Gautam
Mook <[EMAIL PROTECTED]> wrote:
Gautam Bhagra wrote:
> Hi all,
>
> I am unable to get my XPCOM component registered in Firefox 1.5 RC1
> I get the "Components.classes[classid] has no properties" error in
> Firefox browser, whenever i try to access my component.
> I have compiled my XPCOM code using gecko sdk 1.7
> Also, since CView does not work with Firefox 1.5, i am unable to see the
> components that are registered with Firefox 1.5
>
> Is there some other sdk that i am supposed to use to compile my
> components in order to use with Firefox 1.5?
>
> Also, is there some other extension that i can use with Firefox 1.5 in
> order to see the components registered there?
>
> Thanks in advance
> Gautam
>
Firefox 1.5RC1 uses the 1.8 SDK, not the 1.7 one. I believe there's a
copy in
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.8b1/
There does seem to be a working cview in the source tree, but I do not
know if anyone has a copy anywhere. (I'm building Firefox myself, which
lets me use it.) As a workaround, reading the generated compreg.dat in
your Firefox profile folder will also tell you what components are
registered (but not what interfaces each implements).
Hope this helps,
Mook (random bystander)
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom
Yahoo! FareChase - Search multiple travel sites in one click.
