Hello, How can I simulate the failure of construction of an instance of an XPCOM object in C++ ?
If exceptions were available, I would throw something, but they're not. I do not trust my client enough to assume they call an Init method each time they CreateInstance or GetService me, and I feel there must be a way to couple C++ construction and Init method calling "at the factory level", whatever that means. I have only found scarce documentation on this topic, the most relevant help having been an old (1999) post about "writing decent constructors" (http://groups.google.fr/groups?selm=374F1D25.171DBD9B%40netscape.com ) but was no intelligible information for me, though. Any help appreciated, an IDL + C++ example would be most welcome, Alexis -- some domain is free _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
