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

📄 adodbhandler.h

📁 vc在线考试系统源码
💻 H
字号:
/*********************************************************
@author  Chandar
@version 1.0
Development Environment        :  Visual C++ 6.0
Name of the File               :  ADODBHandler.h
Creation/Modification History  :
                                  01-Aug-2001     Created

File Overview

This file declares the class for handling database functions
of the application
*************************************************************/




//Import the msado15.dll so as to use the ADO functionality in the application
//Rename EOF for ADO objects to prevent clash with other objects
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF")


//ADODBHandler class definition
class ADODBHandler  
{
//Attributes
private:
    
    // Singleton variable
    static BOOL m_bDatabaseOpen;

public:
     // COM smart pointers for ADO functions
     _ConnectionPtr m_cpConnection;
	 
	 CString strCurAppPath; //variable to store application path

	 //Constructor declaration
	 ADODBHandler();
     
	 //Function declarations for communicating to database
	 BOOL OpenDatabase();
     _RecordsetPtr GetProductNames();
     BOOL  GetImage(int p_productid);
	 BOOL SetImage(int p_productid,_bstr_t p_image);
	 void CloseDatabase();

	 //Destructor declaration
     virtual ~ADODBHandler();
     
};

⌨️ 快捷键说明

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