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.
one way to add ado support to your c++ program is to import ado type library information. the type library for the current ado is contained within the ado dll, msado15.dll. you can import this type library by importing msado15.dll by using the #import directive: 【程序编程相关:2个CString的小错误,记下来时时提】
adding ado support to a c++ program 【推荐阅读:利用VC制作动态连接库(.dll)(采用】
... 下一页