common.cpp
来自「用C++编写的数据库软件」· C++ 代码 · 共 39 行
CPP
39 行
// Common.cpp : implementation file
//
#include "stdafx.h"
#include "MySqlPlus.h"
#include "Common.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCommon
CCommon::CCommon()
{
}
CCommon::~CCommon()
{
}
CString CCommon::DisplayAdoError(_ConnectionPtr m_pConnection)
{
long errorcount=m_pConnection->GetErrors ()->GetCount ();
_bstr_t add;
CString ErrorMessage,temp;
for (short i=0;i<errorcount;i++)
{
add=m_pConnection->GetErrors ()->GetItem (_variant_t((short)i))->GetDescription ();
temp = (char *)add;
ErrorMessage +=temp;
}
return ErrorMessage;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?