Microsoft Visual C++ 5.0 includes the DAO SDK. The dbDAO classes do not work with earlier versions of Microsoft Visual C++. In addition, the only supported form of DAO from Microsoft Visual C++ is a 32-bit in-process DLL requiring either Microsoft Windows 95 or Windows NT; it does not work with Win32s.
Running the DAO SDK Setup program does everything required to start programming with dbDAO, including copying all necessary DLLs, updating the registry, and setting up a directory structure for the headers, libraries, and sample programs.
The following tables describe the files that are installed by DAO SDK Setup including:
Note To start building a dbDAO application you only need the first two header files listed below — dbdao.h and dbdaoerr.h.
File | Description |
dbdao.h | Provides all dbDAO class definitions and helper macros, and includes other necessary header files. dbdao.h must be included by all applications that use dbDAO. |
dbdaoerr.h | Defines all the errors that can be returned by DAO. See Error Handling for more information on how to handle errors in dbDAO. |
daogetrw.h | Required by applications that use GetRowsEx. It defines HRESULTs not included in dbdaoerr.h, binding constants for the function and the DAOCOLUMNBINDING structure. daogetrw.h does not need to be included in programs that use dbDAO; it is provided so you can rebuild dbdao.cpp. For more information about using GetRowsEx, see Performing Bulk Fetches with GetRows and GetRowsEx. |
_dbdao.h | The _dbdao.h file is used in the compilation of dbdao.cpp. It contains needed definitions and helper macros for the dbDAO source files. _dbdao.h does not have to be included in programs that use dbDAO; it is provided so you can rebuild dbdao.cpp. |
dbdaoint.h | Defines the underlying DAO OLE Automation (OA) interfaces, their methods, parameters, and so on. Use this file to program directly to the DAO OA interfaces. It is included by dbdao.h. |
dbdaoid.h | Defines the interface IDs for the underlying DAO OA objects. It is included by dbdao.h. |
File | Description |
dbdao.cpp | Source code for the dbDAO class libraries. This code creates a set of C++ classes that “cover” the OLE Automation interfaces that DAO exposes. A compiled version of this code is provided in ddao35.dll, which is installed in your system directory. The source code is provided to simplify debugging and building other versions of the dbDAO DLL. See “Other dbDAO DLL Versions” for information on the other versions you can build. |
dbdaouid.cpp | Source code for ddaouid.lib. |
dbdao.mak | MakeFile for dbDAO class libraries. See “Other dbDAO DLL Versions” for information on the other versions you can build. |
dbdao.rc | Generated resource file. |
stdafx.h | Standard MFC header file. |
NoteThe DAOSDK 3.5 libraries will not operate correctly if built with a version of Microsoft Foundation Classes older than 4.2.
File | Description |
ddao35.lib | Import library for ddao35.dll. |
ddao35u.lib | Import library for ddao35u.dll (Unicode version of ddao35.dll). |
ddao35d.lib | Debug version of ddao35.lib. |
ddao35ud.lib | Debug version of ddao35u.lib. |
ddaouid.lib | Import library that defines the GUIDs for DAO. |
File | Description |
ddao35.dll | dbDAO API’s (ANSI version). |
ddao35u.dll | dbDAO API’s (Unicode version). |
ddao35d.dll | Debug version of ddao35.dll. |
ddao35ud.dll | Debug version of ddao35u.dll. |
File | Description |
Employee | Based on Employees table in EMPLOYEE.MDB. Allows viewing of data and simple edits. |
Daoread | Demonstrates different methods for reading data and displays fetch time for each method. |
GetRows | Demonstrates how to use the GetRows and GetRowsEx methods. |
Security | Displays the user and group information from a SystemDB workgroup database. |
Stores | Maintains a database of branch stores. |
MultThrd | Demonstrates multi-threading support in DAO. |
Addrbook | Implements an address book application using data stored on an Internet Server. |
File | Description |
DAOMin.rul | Template InstallShield setup script. |
Regadll | Directory with source files for rebuilding the provided setup support DLL. |
DAOSetup.rtf | Detailed instructions on creating your own setup program. |