Delphi背后---初学者参考之二(2)[8]

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

本文简介:选择自 huojiehai 的 blog

end;

ado(microsoft activex data objects),它是一组通过microsoft ole db 提供者访问数据库的com对象的集合。如我们研究一下tadoqueryfirst方法的实现过程:

tadoquery.first->tdataset.first->tdataset.internalfirst-> tcustomadodataset. internalfirst ->recordset15. movefirst

tadoquerytcustomadodataset继承,而tcustomadodatasettdataset继承,tdataset.internalfirst定义的是虚方法,而子类tcustomadodataset. internalfirst覆盖了它。tcustomadodataset. internalfirs调用接口recordset15 movefirst方法。

不难发现,tadoquery.first最终是通过接口调用com对象实现的。

 

l         delphi与windows 外壳

本文关键:VCL、API、COM、嵌入式汇编语言
 

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

go top