Mook wrote:
> I'm not clear on what "each XPCOM" is.  Each shared library 
> (.dll/.so/.dylib) can contain multiple XPCOM components (with one 
> factory each).  A component is equivalent to a C++ class.  Each XPIDL 
> interface is a pure abstract class in C++; each component can implement 
> multiple interfaces.  (In fact, you would have to implement nsISupports 
> plus some other interface to be useful...)

Note that you don't necessarily need a factory for each of your classes. 
If it's only used as the return value of other functions, you don't need 
a factory/entry in the components array/CID etc. You only need that when 
you want to create your class using getService/createInstance.


-- 
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to