Getting Started with dbDAO

Here are the steps you need to take to get started putting together a project using dbDAO.

To put together a project using dbDAO

  1. Include the two header files dbdao.h and dbdaoerr.h.

  2. Define the following constants:

    For ANSI projects

    #define OLE2ANSI
    

    For Unicode projects

    #define UNICODE
    #define _UNICODE
    
  3. Include the following LIB file in your project library:
    ddao35.lib
    

Note Be sure to use the corresponding dbDAO file for a particular type of build. Each build is a combination of ANSI or Unicode, debug or release, and shared or static DLLs. If you do an ANSI, debug, shared DLL build, use the ANSI, debug, shared DLL dbDAO file (Debug\Ddao35d.dll). This is because the dbDAO classes rely on Microsoft Foundation Classes (MFC) classes internally, and mixing versions of MFC classes can produce unexpected results.