[Lazarus] IUnknown and reference counting

Graeme Geldenhuys graeme at geldenhuys.co.uk
Wed Mar 20 22:21:41 CET 2013


On 2013-03-20 17:56, Hans-Peter Diettrich wrote:
> TInterfacedObject *simplifies* the addition of interfaces to derived 
> classes


Just for clarity [to the original poster]... that is only for COM style
interfaces and the reference counting part.

CORBA style interfaces have no "required" methods to implement, so in
such a case general interface support can be added to a TObject
descendant simply by including the interface name in the class declaration.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list