to ildg
d6的TComponent已经实现了IInterface(IUnkown),所以只要继承于TComponent就可以了,
不用一定继承于InterfacedObject
function QueryInterface(const IID: TGUID
out Obj): HResult
stdcall;
function _AddRef: Integer
stdcall;
function _Release: Integer
stdcall;
这三方法以及Guid都是delphi必须的,因为delphi的底层实现都依赖这些,所以即使开发
Corba,Soap的Interface也会有Guid