dberror.cpp

来自「学校两基管理系统」· C++ 代码 · 共 45 行

CPP
45
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?