Recordset2.h
资源名称:querydef.zip [点击查看]
上传用户:yunnanyeer
上传日期:2007-01-03
资源大小:86k
文件大小:2k
源码类别:
数据库编程
开发平台:
Visual C++
- #if !defined(AFX_RECORDSET2_H__22061DAC_CE91_11D0_B332_0080C83612CB__INCLUDED_)
- #define AFX_RECORDSET2_H__22061DAC_CE91_11D0_B332_0080C83612CB__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // Recordset2.h : header file
- //
- #if defined(BUILD_RECORDSET_PATCH)
- #define EXTATTR __declspec(dllexport)
- #else
- #define EXTATTR __declspec(dllimport)
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CRecordset2 recordset
- class EXTATTR CRecordset2 : public CRecordset
- {
- public:
- CRecordset2(CDatabase* pDatabase = NULL);
- DECLARE_DYNAMIC(CRecordset2)
- // Field/Param Data
- //{{AFX_FIELD(CRecordset2, CRecordset)
- //}}AFX_FIELD
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CRecordset2)
- public:
- virtual void Move(long lRows, WORD wFetchType = SQL_FETCH_RELATIVE);
- //}}AFX_VIRTUAL
- // Implementation
- };
- namespace CRecordsetPatch // patches CString parameters to stored procedures
- {
- // To use this function(s) you need to put into DoFieldExchange function the following declaration
- // using CRecordsetPatch::RFX_Text;
- // This has to precede any call to RFX_Text
- // Failure in doing so will call the global RFX_Text instead
- EXTATTR void AFXAPI RFX_Text(CFieldExchange* pFX,LPCTSTR szName,
- CString& value,int nMaxLength = 255,
- int nColumnType = SQL_VARCHAR,short nScale = 0);
- };
- #define USES_RecordsetPatch using CRecordsetPatch::RFX_Text
- #if defined(_DEBUG)
- #pragma comment(lib,"RecordsetPatchD")
- #else
- #pragma comment(lib,"RecordsetPatch")
- #endif
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_RECORDSET2_H__22061DAC_CE91_11D0_B332_0080C83612CB__INCLUDED_)