lz是不是把ado和dao搞混淆了?ado是Activex Data Objects 是微软的一套标准数据库访问接口。其构架在ole db之上,是对ole db的封装。 DAO(Data Access Objects)是MFC封装的.这个比较古老啦。是微软提供针对.mdb文件的一种快速直接访问接口。 “DAO supplies a hierarchical set of objects that use the Microsoft Jet database engine to access data and database structure in: Microsoft Jet (.MDB) databases ODBC data sources, using an ODBC driver Installable ISAM databases, such as dBASE and Paradox, which the database engine can read directly To begin learning about the DAO technology, see the topic "Data Access Objects Overview" in DAO Help.” 呵呵,上面一段摘至msdn.
DAO(Data Access Objects)是MFC封装的.这个比较古老啦。是微软提供针对.mdb文件的一种快速直接访问接口。
“DAO supplies a hierarchical set of objects that use the Microsoft Jet database engine to access data and database structure in: Microsoft Jet (.MDB) databases
ODBC data sources, using an ODBC driver
Installable ISAM databases, such as dBASE and Paradox, which the database engine can read directly
To begin learning about the DAO technology, see the topic "Data Access Objects Overview" in DAO Help.”
呵呵,上面一段摘至msdn.
vc使用的时候
可以#import "msado15.dll" \
no_namespace rename("EOF", "EndOfFile")
引入ado。
http://www.vckbase.com/document/viewdoc/?id=1557