⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arsmsg.h

📁 自己编写的一个数据库
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the ARSMSG_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// ARSMSG_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#ifndef ARSMSG_DEFINED
#define ARSMSG_DEFINED
#ifdef ARSMSG_EXPORTS
#define ARSMSG_API __declspec(dllexport)
#else
#define ARSMSG_API __declspec(dllimport)
#endif

#define ARSMSG_MAX_MSG_SIZE                    1024

// Definitions for ERROR messages
#define ARSMSG_ERR_NO_ERROR                    0
#define ARSMSG_ERR_COM_INIT                    101
#define ARSMSG_ERR_ADO_CON_INIT                102
#define ARSMSG_ERR_ADO_CON_OPEN                103
#define ARSMSG_ERR_ADO_RECSET_INIT             104
#define ARSMSG_ERR_ADO_RECSET_OPEN             105
#define ARSMSG_ERR_ADO_RECSET_NOTOPEN          106
#define ARSMSG_ERR_ADO_RECSET_NOFIELDS         107
#define ARSMSG_ERR_ADO_RECSET_FIELD_NOTFOUND   108
#define ARSMSG_ERR_ADO_RECSET_CANTADD          109
#define ARSMSG_ERR_ADO_RECSET_INVAL_FIELDTYPE  110
#define ARSMSG_ERR_ADO_RECSET_CANTUPDATE       111
#define ARSMSG_ERR_ADO_RECSET_CANTSETFIELD     112
#define ARSMSG_ERR_ADO_RECSET_CANTDELETE       113
#define ARSMSG_ERR_ADO_RECSET_CANTCANCELUPDATE 114
#define ARSMSG_ERR_ADO_RECSET_CANTPOSITIONREC  115

#define ARSMSG_ERR_GEN_INVALID_PARAMETER       201


// General Strings
#define ARSMSG_STR_ERROR_DESCRIPTION           1001
#define ARSMSG_STR_ERROR_SOURCE                1002
#define ARSMSG_STR_ERROR_NATIVE                1003
#define ARSMSG_STR_ERROR_SQLSTATE              1004
#define ARSMSG_STR_ERROR_NUMBER                1005

ARSMSG_API char * arsmsg_GetMessage(UINT nID, char *lpStr, BOOL *res = NULL);
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -