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

📄 adosqldemodlg.h

📁 ADO 连接数据库,pf
💻 H
字号:
// ADOSQLDemoDlg.h : header file
//

#if !defined(AFX_ADOSQLDEMODLG_H__FEF032AF_4043_4D15_9C41_02E508476CFA__INCLUDED_)
#define AFX_ADOSQLDEMODLG_H__FEF032AF_4043_4D15_9C41_02E508476CFA__INCLUDED_

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

//***导入需要的东西**************************************************
#pragma warning(disable:4146)
#import "c:\program files\common files\system\ado\msado15.dll"\
	no_namespace rename("EOF","adoEOF")

/////////////////////////////////////////////////////////////////////////////
// CADOSQLDemoDlg dialog

class CADOSQLDemoDlg : public CDialog
{
// Construction
public:
	void GetAllRecord();
	void OnInitList();
	void ExitAdo();
	void ExecuteSQL(CString bstrSQL);
	_RecordsetPtr& GetRecordset(CString strSQL);
	_RecordsetPtr m_pRecordset;
	_ConnectionPtr m_pConnection;
	void OnInitAdoConnect();
	CADOSQLDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CADOSQLDemoDlg)
	enum { IDD = IDD_ADOSQLDEMO_DIALOG };
	CListCtrl	m_CtrlList;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CADOSQLDemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CADOSQLDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ADOSQLDEMODLG_H__FEF032AF_4043_4D15_9C41_02E508476CFA__INCLUDED_)

⌨️ 快捷键说明

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