Jayant Sai wrote:
w.r.t the documentation on Generic Factories
(http://www.mozilla.org/projects/xpcom/generic-factory.html), a few
things are not clear.

1. 'To create a factory for this class, simply write the following:'.
A sample class has been provided for creating a factory for a class
(sorry but I am still in the process of finding my way around XPCOM),
so where does one put this code? In the cpp file/in a new module file?

2. 'This example assumes that the XPCOM repository is available as an
interface (which it soon will be)'. Well is it in Moz 1.2.1?

thanks
Jayant


That document needs to be dusted off. Take a look at the actual code example here:

http://lxr.mozilla.org/seamonkey/source/xpcom/sample/

keep in mind that this code should be copied into your sample. The structure of the generic module structures are not intended to be frozen.

Doug Turner
[EMAIL PROTECTED]




Reply via email to