dbdao.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:49k
- /************************************************************************
- ** D B D A O . H *
- ** *
- *************************************************************************
- ** Copyright (C) 1996 by Microsoft Corporation *
- ** All Rights Reserved *
- ************************************************************************/
- /*
- DBDAO.H
- Class definitions for ddao SDK.
- This is a part of the Microsoft Data Access Objects SDK library.
- See the DAO SDK help information for detailed information regarding the
- Microsoft Data Access Objects SDK product.
- */
- #ifndef _DBDAO_H_
- #define _DBDAO_H_
- // Ignore warning "non dll-interface class 'X' used as base for dll-interface class 'Y'
- #pragma warning( disable : 4275 )
- //DAO must be built with an MFC version >= 4.2 (or you'll get memory problems with CStrings)
- #if _MFC_VER < 0x0420
- #error The DAOSDK 3.5 libraries will not operate correctly if built with MFC older than 4.2
- #endif
- #ifndef DAO35
- #define DAO35
- #endif
- #include <dbdaoint.h>
- #include <daogetrw.h>
- #include <dbdaoid.h>
- // Decorations
- #define CONSTRUCTOR
- #define DESTRUCTOR
- //Disable export
- #ifndef DLLEXPORT
- #define DLLEXPORT __declspec( dllexport )
- #endif
- //Macro to convert HRESULT to IDA
- #define DBERR(x) SCODE_CODE(GetScode(x))
- // Include internal DAO definitions
- #include <_dbdao.h>
- // DAO Recordset::GetRowsEx() binding definitions
- #define dbBindIndexINT 1
- #define dbBindIndexSTR 2
- #define dbBindI2 DAO_I2 // long
- #define dbBindI4 DAO_I4 // short
- #define dbBindR4 DAO_R4 // float
- #define dbBindR8 DAO_R8 // double
- #define dbBindCY DAO_CURRENCY // Currency
- #define dbBindDATE DAO_DATE // DATE
- #define dbBindBOOL DAO_BOOL // VARIANT_BOOL
- #define dbBindUI1 DAO_CHAR // unsigned char
- #define dbBindVARIANT DAO_ANYVARIANT // VARIANT
- #define dbBindWCHAR DAO_WCHAR // wchar_t[] (inline)
- #define dbBindBookmark DAO_BOOKMARK // bookmark psuedo field
- #define dbBindLPSTR DAO_LPSTR //