database.h

来自「类似flashget下载工具代码 本来想在完善了上传的」· C头文件 代码 · 共 53 行

H
53
字号
// DataBase.h: interface for the CDataBase class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATABASE_H__05295C7C_72A6_4D21_A2FC_FEDEDDD998DF__INCLUDED_)
#define AFX_DATABASE_H__05295C7C_72A6_4D21_A2FC_FEDEDDD998DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//数据库
//#include  "bin\AFADO\include\AFADO.h"

#include "ado.h"

class CDataBase :public CWnd
{
public:
	
	virtual ~CDataBase();
    static CDataBase* Instance();
	BOOL Opendb(CString& strcon);

	
	CString m_Connstring; //连接字符
	CString m_photopath;
	CString m_sIniFileName;
	CADODatabase    m_DBConn;
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	
	//}}AFX_VIRTUAL
private:
   	//ADO连接对象

  
protected:
	//{{AFX_MSG(CMainFrame)

		// 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()
private:
		CDataBase();
		static CDataBase* m_pDataBase;
	
};

#endif // !defined(AFX_DATABASE_H__05295C7C_72A6_4D21_A2FC_FEDEDDD998DF__INCLUDED_)

⌨️ 快捷键说明

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