Neil Stansbury wrote: > Hi all, > > I am trying to inherit a base XPCOM class in my IDL file, can anyone > give me some pointers on how to achieve this, as I am using JS rather > than CPP so I need to rely on IDL. > > Cheers, > > Neil
Remember that an interface can only inherit other interfaces. A class can implement one or more interfaces and dress itself up as a COM component, but it can't inherit an implementation from another COM component. If this was what you are wanting, sorry. You can however wrap an existing component in a new one, forwarding method calls to it, and adding your own functionality where needed.This is called encapsulation in COM speak, in think. Have a look at http://books.mozdev.org/html/mozilla-chp-8-sect-2.html should get you started. Joe _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
