CADO 1
CADO 1 File .h #if !defined(AFX_ADO_H__A1209526_71B7_45EC_A72A_9FB2484AE714__INCLUDED_) #define AFX_ADO_H__A1209526_71B7_45EC_A72A_9FB2484AE714__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "StdAfx.h" class CADO { public: void* SQLExcute(char *szSQL); BOOL SQLDelete(char *szTableName, char *szWhere); BOOL SQLUpdate(char* szTableName, char* szSet, char* szWhere); _RecordsetPtr CADO::SQLSelect(char *fieldStmt,char *szTableName,char *WhereStmt); BOOL SQLInsert(char* szQuery); BOOL SQLInsert(char* szTableName, char* szValues); _RecordsetPtr CADO::SQLstr(); BOOL DisConnect(); BOOL Connect(char* szDBServerIP, char* szDBName, char* szUserID, char* szUserPW); BOOL isStatus(); CADO(); virtual ~CADO(); private: BOOL m_bIsConnected; HRESULT m_hresult; _ConnectionPtr m_pConn; _RecordsetPtr m_pRset; }; #endif // !defined(AFX_ADO_H__A1209526_71B7_45EC_A72A_9FB2484AE714__INCLUDED_)