📄 dberror.cpp
字号:
// DBError.cpp: implementation of the CDBError class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DBError.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//int msgCount=0;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
/*
CDBError::CDBError()
{
}
void CDBError::SetAutoThrow(bool bvl) {AutoThrow=bvl; }
void CDBError::SetErrMsg(char *msg){ strcpy(msgbuf,msg); }
void CDBError::SetErrCode(int code){ errcode=code;}
int CDBError::GetErrCode(){return errcode;}
void CDBError::GetLastErr(int &code,char **buf) {
code=errcode;
if(errcode==ERR_DBSYS)
*buf=GetErr();
else *buf=(char *)msgbuf; }
void CDBError::SetErrPos(int line,char *fn) {
lineid=line;
strcpy(filen,fn); }
void CDBError::GetErrPos(int &line,char **fn) {
line=lineid;
*fn=(char *)filen; }
bool CDBError::GetAutoThrow() { return AutoThrow; }
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -