class IAlarmDatabase { public: IAlarmDatabase() {} virtual~IAlarmDatabase(){} virtual bool OpenConnect(string strDataSource, string strUID, string strPwd) = 0; virtual bool ExecuteSql (string strSql) = 0; }; class CAlarmDatabase:public IAlarmDatabase { public: CAlarmDatabase(); ~CAlarmDatabase(); public: static CAlarmDatabase* Instance(); bool OpenConnect(string strDataSource, string strUID, string strPwd); bool ExecuteSql(string strSql); protected: static auto_ptr<calarmdatabase> m_ADOInstance; _ConnectionPtr m_pConnect; _RecordsetPtr m_pRecordset; }; </calarmdatabase>
m_pConnect->Close()
~CAlarmDatabase()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)