Education/Learning/UsingXpcom: Difference between revisions

no edit summary
(New page: =Introduction= The following is a discussion with examples of how to use XPCOM components from C++ and JavaScript. It elaborates on an excellent chapter from the [https://developer.mozil...)
 
No edit summary
 
Line 112: Line 112:


The object returned by Components.classes is an nsISupports, the most basic type in XPCOM.  Before we can use it, we need to pick an interface through which to all its functionality.  QueryInterface allows us to ask for another interface for the given object.  Once we have that interface, we can start accessing/calling its members.
The object returned by Components.classes is an nsISupports, the most basic type in XPCOM.  Before we can use it, we need to pick an interface through which to all its functionality.  QueryInterface allows us to ask for another interface for the given object.  Once we have that interface, we can start accessing/calling its members.
[[Category:Education]]
[[Category:Computer Science]]
[[Category:Mozilla Technologies]]
[[Category:XPCOM]]
210

edits