Preoblem is solved. I have downloaded the static-bined xpidl.exe file
and created a new header and typelib file. i deleted the RegisterSelf
and UnregisterSelf functions from the Modul file and it works fine. I'm
not sure where the problem was, but it works now :-D

Thomas wrote:
> Okay, i have made a stupid mistake. I must use gecko-sdk 1.8.0.4 for FF
> 1.5. If i use this, i can compile the projekt and registering it in FF
> (there are entrys in xpti.dat and compreg.dat). But if i try to call my
> service it doen't work (no error message and nothing seems to be
> retuned from the getService() message).
> What am i doing wrong?
>
> Thomas wrote:
> > Okay, i can compile the project now. I haven't included the LIBs of the
> > gecko sdk (xpcom.lib, embedstring.lib, ...)
> > I have copied the nsISimple.xpt and the nsSimple.dll file to the
> > compenent folder of FF 1.5 and deleted the compreg.dat and the
> > xpti.dat.
> > I started "regxpcom.exe -a" then and FF ist generating compreg.dat and
> > xpti.dat new. The XPT file is listed in the xpti.dat, but the
> > nsSimple.dll is not listed in compreg.dat.
> > If i try to call the service:
> > var tp = Components.classes["@mozilla.org/cpp_simple;1"].getService();
> > tp = tp.QueryInterface(Components.interface.nsISimple);
> >
> > nothing happens and i get no error message. have I compiled it with the
> > wrong Gecko SDK Version (i use the last windows version:
> > Gecko-SDK-1.6b)?
> >
> > Thomas wrote:
> > > Hi,
> > >
> > > I tryed (since one week) to build the XPCOM Sample: nsSimple. It is
> > > describte in the http://books.mozdev.org/html/index.html and espacally
> > > on this page: http://books.mozdev.org/html/mozilla-chp-8-sect-2.html
> > >
> > > Generating the of the nsISimple.xpt file and the nsISimple.h file are
> > > problemless and all macros are useable (that was my problem before), but
> > > if I try to compile the nsSimple.cpp and nsSimpleModule.cpp file in VS
> > > 2005 under WinXP I get this error message:
> > >
> > > nsSimpleModule.obj : error LNK2028: Nicht aufgelöstes Token (0A00000B)
> > > ""void * __cdecl operator new(unsigned int)" ([EMAIL PROTECTED]@Z)", auf 
> > > das
> > > in Funktion ""unsigned int __stdcall `anonymous
> > > namespace'::nsSimpleImplConstructor(class nsISupports *,struct nsID
> > > const &,void * *)"
> > > ([EMAIL PROTECTED]@@$$FYGIPAVnsISupports@@ABUnsID@@[EMAIL PROTECTED])"
> > >
> > > verwiesen wird.
> > >
> > > Sorry, the message is in german. It means the the Token (0A00000B)...
> > > isn't resolved and it is refered in ""unsigned int __stdcall `anonymous
> > > namespace'::nsSimpleImplConstructor(class nsISupports *,struct nsID
> > > const &,void * *)"
> > > ([EMAIL PROTECTED]@@$$FYGIPAVnsISupports@@ABUnsID@@[EMAIL PROTECTED])".
> > >
> > > Whatever that means...  :-(
> > >
> > > I have a lot of this messages (the whole buildlog can we watched at:
> > > http://credes.psiegmund.de/ff/buildlog.htm), therefore I think i have
> > > forgotten some general setting? Have someone compiled this example under
> > > win xp?
> > > 
> > > Thanks Thomas

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to