odbcset.h

来自「利用MFC编写的一个小小的数据库系统」· C头文件 代码 · 共 50 行

H
50
字号
// ODBCSet.h : interface of the CODBCSet class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ODBCSET_H__6A97948B_C12D_447D_BE0B_7014ED4DE638__INCLUDED_)
#define AFX_ODBCSET_H__6A97948B_C12D_447D_BE0B_7014ED4DE638__INCLUDED_

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

class CODBCSet : public CRecordset
{
public:
	CODBCSet(CDatabase* pDatabase = NULL);
	DECLARE_DYNAMIC(CODBCSet)

// Field/Param Data
	//{{AFX_FIELD(CODBCSet, CRecordset)
	
	long	m___ID;
	CString	m_column1;
	CString	m_column2;
	CString	m_column3;
	CString	m_column4;
	//}}AFX_FIELD

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CODBCSet)
	public:
	virtual CString GetDefaultConnect();	// Default connection string
	virtual CString GetDefaultSQL(); 	// default SQL for Recordset
	virtual void DoFieldExchange(CFieldExchange* pFX);	// RFX support
	//}}AFX_VIRTUAL
    long GetMaxID();
// Implementation
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

};

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

#endif // !defined(AFX_ODBCSET_H__6A97948B_C12D_447D_BE0B_7014ED4DE638__INCLUDED_)

⌨️ 快捷键说明

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