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

📄 ado.h

📁 基于com的网络爬虫程序
💻 H
字号:
//
// This file is part of UniWebSpider Project.
//
// UniWebSpider is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// UniWebSpider is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with UniWebSpider; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

// WRITTEN BY	: ValGarn

// ADO.h: interface for the CADO class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ADO_H__64F59D64_E264_4149_9466_E0A35CEEA999__INCLUDED_)
#define AFX_ADO_H__64F59D64_E264_4149_9466_E0A35CEEA999__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#import "msado21.tlb" no_namespace rename("EOF","adoEOF")

class CADO  
{
public:
	BOOL OpenConnection(BSTR ConnectionString, BSTR UserId, BSTR Password);
	BOOL ExecuteSPReturnDelimited(BSTR SPName, VARIANT ParameterArray, BSTR Delimiter, VARIANT *Result);
	BOOL ExecuteSP(BSTR SPName, VARIANT ParameterString, _Recordset **Result);
	BOOL ExecuteReturnDelimited(BSTR SQL, BSTR Delimiter, VARIANT *Result);
	BOOL ExecuteCommand(BSTR SQL);
	BOOL Execute(BSTR SQL, _Recordset **Result);
	BOOL CloseConnection();
	CADO();
	virtual ~CADO();


	_ConnectionPtr m_Connection;

protected:
	_CommandPtr m_Command;

};

#endif // !defined(AFX_ADO_H__64F59D64_E264_4149_9466_E0A35CEEA999__INCLUDED_)

⌨️ 快捷键说明

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