dbcommand.cpp
来自「物资的入库、出库、借用和归还等。还提供日志 信息记录和报表显示功能」· C++ 代码 · 共 42 行
CPP
42 行
// DBCommand.cpp: implementation of the CDBCommand class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DBCommand.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CDBCommand::CDBCommand()
{
}
CDBCommand::~CDBCommand()
{
}
BOOL CDBCommand::ExecuteSQL(CString SQL)
{
ASSERT(m_cnn);
ASSERT(m_cnn->m_Actived);
try
{
m_cnn->m_pConn->Execute(_bstr_t(SQL), NULL, adCmdText);
return TRUE;
}
catch(_com_error &e)
{
return FALSE;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?