非COM环境下的接口编程--问题,技巧,应用(二)[8]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 hkbarton 的 blog

  begin

   flist[i].free;

   flist[i]:=nil;

  end;

  finalize(flist);

  inherited;

end;

 

function tfoomanager.getfoobyid(id: integer): ifoo;

begin

 result:=flist[id] as ifoo;

end;

 

本文关键:接口,Delphi,COM,设计模式
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top