Sandesh Sethia wrote:
        I am a novice developer and a complete newbie to XPCOM. For about
4-5 days now, I have been searching for documents that would help me write
C++ code to access already present XPCOM components but its all been in
vain. As everything present out there talks more (infact 99%)  about
creating a component. But I am looking for accessing a comp.

The answer to this is "it depends on which component." Depending on what component you want, the ways to access it vary from a getService() call (for services) to getting the component from some other object, to creating an instance yourself.

       I would really appreciate if anyone can help me by sending me an
example on accessing any component (it would be great if it were
nsIDocumentLoader) starting from #include .......

Which nsIDocumentLoader? There's one for every window object (toplevel window, frame, iframe, etc) and one "root" docloader which is a service. Which one are you trying to use?

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

Reply via email to