RecordsetEx.h
资源名称:ISQL_src.zip [点击查看]
上传用户:jsxglz
上传日期:2007-01-03
资源大小:117k
文件大小:1k
源码类别:
SQL Server
开发平台:
Visual C++
- #if !defined(AFX_RECORDSETEX_H__43D82455_75A6_11D2_BD7C_204C4F4F5020__INCLUDED_)
- #define AFX_RECORDSETEX_H__43D82455_75A6_11D2_BD7C_204C4F4F5020__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // RecordsetEx.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CRecordsetEx recordset
- class CRecordsetEx : public CRecordset
- {
- public:
- CRecordsetEx(CDatabase* pDatabase = NULL);
- DECLARE_DYNAMIC(CRecordsetEx)
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CRecordsetEx)
- public:
- virtual BOOL Open(UINT nOpenType = snapshot, LPCTSTR lpszSql = NULL, DWORD dwOptions = none);
- //}}AFX_VIRTUAL
- void AllocAndCacheFieldInfo();
- BOOL ExecDirect(const CString& sSQL);
- void GetFieldValue(short nIndex, CString& strValue);
- // Implementation
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- private:
- long GetData(CDatabase* pdb, HSTMT hstmt,
- short nFieldIndex, short nFieldType, LPVOID pvData, int nLen,
- short nSQLType);
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_RECORDSETEX_H__43D82455_75A6_11D2_BD7C_204C4F4F5020__INCLUDED_)