On Jan 26, 2:13 pm, "prodizy" <[EMAIL PROTECTED]> wrote: > In the extension I am developing, I need to use getInternalKeyToken() . > But I couldn't locate a file in Firefox CVS that declares this method. > I could only find an idl file that declares it.
in short, the idl file really is the declaration (and it's translated into a header file by the build system), and you should learn more about how xpcom, idl, xpidl and friends cooperate. it'd also help you immensely to actually build mozilla (including *watching* the build process). one helpful thing about the mozilla build process is "make foo.i" (where foo is anything that would match foo.o or foo.obj depending on your platform). > Also in Firefox source code every where I can see #include > "nsIPK11TokenDB.h". But I can't locate the file anywhere. you should try using a cross reference which has some understanding of idl files, http://mxr.mozilla.org mxr will try fairly hard to recognize #include "nsIFoo.h" as a reference to nsIFoo.idl and sometimes it will correctly recognize method calls as relating to other versions. -- that part is under development (i need to fix genxref some more maybe a few weekends from now). > How to access the method from DLL? again, note that an interface is not tied to an implementation, so in addition to knowing what interface declares a method, you need to know which object implements the interface and you need to know how you're supposed to get the object, sometime's it's do_GetService, sometimes do_CreateInstance, sometimes NS_NewFoo (not usually for you, except for very early embedding bootstrapping), and sometimes it's a property getter from some other object you already have. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
