12345678910111213141516171819202122232425262728 |
- #ifndef __ADOINTERFACE_H__
- #define __ADOINTERFACE_H__
- //************************************//
- // [类名]:CAdoInterface
- // [描述]:ado操作数据库
- //************************************//
- class CAdoInterface
- {
- public:
- CAdoInterface();
- ~CAdoInterface();
- HRESULT CreateInstance();
- HRESULT OpenDataBase(const TCHAR* pConnectStr, const TCHAR* pUserID, const TCHAR* pPWD, CString& errMsg);
- void CloseDataBase();
- _ConnectionPtr GetContPrt(){return m_pContPtr;}
- private:
- _ConnectionPtr m_pContPtr;
- };
- #endif
|