Skip to content

Latest commit

 

History

History
85 lines (69 loc) · 3.32 KB

File metadata and controls

85 lines (69 loc) · 3.32 KB
title DAO Classes | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
vc.classes.data
dev_langs
C++
helpviewer_keywords
database classes [C++], DAO
DAO [C++], classes
ms.assetid b15d0cd6-328b-4288-9c19-d037a795db57
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

DAO Classes

These classes work with the other application framework classes to give easy access to Data Access Object (DAO) databases, which use the same database engine as Microsoft Visual Basic and Microsoft Access. The DAO classes can also access a wide variety of databases for which Open Database Connectivity (ODBC) drivers are available.

Programs that use DAO databases will have at least a CDaoDatabase object and a CDaoRecordset object.

Note

As of Visual C++ .NET, the Visual C++ environment and wizards no longer support DAO (although the DAO classes are included and you can still use them). Microsoft recommends that you use ODBC for new MFC projects. You should only use DAO in maintaining existing applications.

CDaoWorkspace
Manages a named, password-protected database session from login to logoff. Most programs use the default workspace.

CDaoDatabase
A connection to a database through which you can operate on the data.

CDaoRecordset
Represents a set of records selected from a data source.

CDaoRecordView
A view that displays database records in controls.

CDaoQueryDef
Represents a query definition, usually one saved in a database.

CDaoTableDef
Represents the stored definition of a base table or an attached table.

CDaoException
Represents an exception condition arising from the DAO classes.

CDaoFieldExchange
Supports the DAO record field exchange (DFX) routines used by the DAO database classes. You will normally not directly use this class.

Related Classes

CLongBinary
Encapsulates a handle to storage for a binary large object (BLOB), such as a bitmap. CLongBinary objects are used to manage large data objects stored in database tables.

COleCurrency
Wrapper for the OLE automation type CURRENCY, a fixed-point arithmetic type, with 15 digits before the decimal point and 4 digits after.

COleDateTime
Wrapper for the OLE automation type DATE. Represents date and time values.

COleVariant
Wrapper for the OLE automation type VARIANT. Data in VARIANTs can be stored in many formats.

See Also

Class Overview