AdoLib.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- #ifndef _ADOLIB_H
- #define _ADOLIB_H
- /****************************************************
- * This head file is global public file, it *
- * includes all ADO Accessing public head files. *
- * Standard Template Library head file *
- *--------------------------------------------------*
- * Author : Devia Lee. Date: 2004-05-28 *
- ****************************************************/
- #pragma warning(disable:4786)
- #pragma warning(disable:4146)
- #include <iostream> //STL
- #include <fstream> //...
- #include <string> //...
- #include <list> //...
- #include <math.h> //Math library
- #include <comdef.h> //_variant_t class defined here
- #include <assert.h> //assert
- #include <windows.h> //windows type defined here
- //#import the ADO type library.
- #import "..msado15.dll" rename_namespace("ADOCG") named_guids rename("EOF","ADOEOF") rename("BOF","ADOBOF")
- using namespace std;
- using namespace ADOCG;
- //define
- #define _EMPSTR ""
- #define _ARRAYSIZE(_p, _t) ((sizeof(_p))/(sizeof(_t)))
- #define _MEMSET(_p, _size) {if(_p){memset(_p, 0x0, _size);}}
- #define _COMOK(_r) ((S_OK==_r)?true:false)
- #define _STREMPTY(_s) (stricmp(_s, _EMPSTR)?false:true)
- typedef unsigned int uint;
- typedef unsigned long ulong;
- typedef unsigned short ushort;
- #define VLLONG __int64
- #define MAX_BOLB_BLOCKSIZE 8096
- #endif //_ADOLIB_H