TNewADO.h
上传用户:haiweijt
上传日期:2018-02-23
资源大小:8195k
文件大小:1k
- #pragma once
- #include <windows.h>
- #import "c:Program FilesCommon FilesSystemadomsado15.dll" no_namespace rename("EOF", "adoEOF")
- class TNewADO
- {
- public:
- TNewADO(void);
- ~TNewADO(void);
- BOOL Open(const char* IP, const char* User, const char* PWD, const char* DB);
- void Close();
- int Execute(const char* SQL);
- BOOL IsConnect() { return m_IsConnect;};
- public:
- BOOL Connect();
- void Disconnect();
- private:
- _ConnectionPtr m_pConnection;
- BOOL m_IsConnect;
- char m_IP[32];
- char m_User[32];
- char m_PWD[32];
- char m_DB[32];
- };