From: Vlad K. <hv...@us...> - 2011-03-30 17:43:16
|
> And IInterface is incompatible with our Interface class, cause our don't > have QueryInterface. Yes, and this is sad but don't prevent Delphi to work with our Interface. > So our Interface must be declared as: > Interface = interface > ... > end; > > and not: > Interface = interface(IInterface) > ... > end; This is he same ;) ---- The declaration of an interface can specify an ancestor interface. If no ancestor is specified, the interface is a direct descendant of IInterface, which is defined in the System unit and is the ultimate ancestor of all other interfaces. ---- > Hence you can't make the Firebird objects uses Delphi's RAII. Not directly, unfortunately. Regards, Vlad |