www.pudn.com > Database.rar > Database.h


// Database.h : main header file for the DATABASE application 
// 
 
#if !defined(AFX_DATABASE_H__0CD99169_BAC9_4E6C_AF34_10F58C0CD739__INCLUDED_) 
#define AFX_DATABASE_H__0CD99169_BAC9_4E6C_AF34_10F58C0CD739__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#ifndef __AFXWIN_H__ 
	#error include 'stdafx.h' before including this file for PCH 
#endif 
 
#include "resource.h"		// main symbols 
 
///////////////////////////////////////////////////////////////////////////// 
// CDatabaseApp: 
// See Database.cpp for the implementation of this class 
// 
 
class CDatabaseApp : public CWinApp 
{ 
public: 
	CDatabaseApp(); 
 
	//定义变量 
	_ConnectionPtr m_pConnection;  // 添加一个指向Connection对象的指针 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDatabaseApp) 
	public: 
	virtual BOOL InitInstance(); 
	virtual int ExitInstance(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
 
	//{{AFX_MSG(CDatabaseApp) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DATABASE_H__0CD99169_BAC9_4E6C_AF34_10F58C0CD739__INCLUDED_)