钻石星尘

C++11/Network 杂记

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2006年4月1日

摘要: 在7.0版本 以后的VC 引入了Attribute来简化COM开发,比如ATL Attribute等。 ATL的Atttribute是通过一个Attribute Provider的外部工具来支持的。Compiler在遇到Attribute时候会调用外部的Attribute Provider来处理。Attribute Provider根据Attribute内容注入新的Injected Code来影响... 阅读全文
posted @ 2006-04-01 14:59 Joney 阅读(678) 评论(0) 推荐(0)

摘要: 如前面示例所展示,我们可以用数据库Attribute来简化ATL OLEDB Templates的开发。 用ATL OLEDB 的wizard生成Macro实在让人感觉沮丧,加上里面出现的一堆内部C++ Compiler扩展的关键字,时间一长,代码量一大,通常让人失去维护代码的耐心。MS的ATL team也针对此使用了Attribute来解决,通过Compiler来实现代码的生成和注入。 阅读全文
posted @ 2006-04-01 12:09 Joney 阅读(207) 评论(0) 推荐(0)

摘要: OLE DB Consumer Templates 是用来简化OLE DB Consumer 开发的一种手段。它支持OLE DB 2.6的版本。主要的对象包括:Data Sources and Sessions Accessors and Rowsets Commands and Tables User Records如果对应到当前流行的数据库访问模式,那么DataSource对应可建立conne... 阅读全文
posted @ 2006-04-01 11:09 Joney 阅读(345) 评论(0) 推荐(0)