|
|
| 项目描述: |
Microsoft ActiveX Data Object (ADO) provides an easy way to data access and manipulation that is independent of data stores, tools, and languages. This flexibility and easy-to-code facility makes ADO the perfect choice for developers. ADO is implemented with Component Object Model (COM) interfaces. Unlike VB programmers, C++ programmers must know the details of using COM for using ADO. So, using ADO from C++ is still very complex. But, it is possible to get an easy ADO programming model from C++, which can help to hide the details of using COM. In this article, I demonstrate a C++ class to do this that encapsulates the ADO connection object. You can apply same technique for encapsulating other ADO objects.
Microsoft ActiveX Data Object (ADO) 提供了一种容易的数据访问和处理方法,它独立于数据存储、工具和语言。其灵活性和易用性使ADO成为开发人员的首先选择。ADO的实现采用了 Component Object Model (COM)接口。不像VB程序员,C++程序员在使用ADO时必须知道COM的细节。所以在C++中使用ADO仍旧有些复杂。但是,可以在C++中得到一个用于使用的ADO编程模型,以隐藏使用COM的细节。在这个项目中,我实现了一个C++类来封装ADO的connection 连接对象。你可以使用同样的技术来封装ADO的其它对象。
来源: https://www.codeguru.com/Cpp/data/mfc_database/ado/article.php/c6729/ |
| 类别: |
| |
|
发布者:
cbd002
|
|
| 最新发布源码包 |
| 软件包 |
版本号 |
日期 |
本地下载 |
| Database |
 1.0  |
2004-04-09 |
下载 |
|
|