/******************************************************************************** Class »ç¿ë ¿¹.. CVORecordset m_rsCar; HRESULT hr = m_rsCar.OpenDB( DB_FILE_PATH ); HRESULT hr = m_rsCar.Open( ((BSTR)(LPCTSTR)strSQL), adOpenKeyset, adLockOptimistic); - O R - HRESULT hr = m_rsCar.Open( DB_FILE_PATH, ((BSTR)(LPCTSTR)strSQL), adOpenKeyset, adLockOptimistic); /*********************************************************************************/ //------------------------------------------------------------------- // VORecordset header file //------------------------------------------------------------------- // // Copyright ©2000 Virtual Office Systems Incorporated // All Rights Reserved // // This code may be used in compiled form in any way you desire. This // file may be redistributed unmodified by any means PROVIDING it is // not sold for profit without the authors written consent, and // providing that this notice and the authors name is included. // // This code can be compiled, modified and distributed freely, providing // that this copyright information remains intact in the distribution. // // This code may be compiled in original or modified form in any private // or commercial application. // // This file is provided "as is" with no expressed or implied warranty. // The author accepts no liability for any damage, in any form, caused // by this code. Use it at your own risk. //------------------------------------------------------------------- #if !defined(AFX_VORECORDSET_H__B81BD14E_98F0_42A7_A64F_3FA21F5A3E5D__INCLUDED_) #define AFX_VORECORDSET_H__B81BD14E_98F0_42A7_A64F_3FA21F5A3E5D__INCLUDED_ #include "VOConnection.h" // Added by ClassView #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include class CVORecordset { public: BOOL MoveLast(); BOOL MovePrev(); void SetFieldValue(int iField, VARIANT val); LPCTSTR GetFieldValueString(int iField); VARIANT GetFieldValue(int iField); LPCTSTR GetFieldName(int iField); Field* GetField(int iField); long GetFieldCount() { return m_FldCnt; } BOOL MoveNext(); BOOL MoveFirst(); BOOL IsEOF(); BOOL IsBOF(); BOOL Close(); HRESULT OpenDB( CString FileUrl ); HRESULT Open( LPCTSTR pcszSource, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType); HRESULT Open( CString FileUrl, LPCTSTR pcszSource, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType); HRESULT Open( CString FileUrl, LPCTSTR pcszSource ); BOOL Initialize(); BOOL IsOpen() { return m_fIsOpen; } CVORecordset(); virtual ~CVORecordset(); operator _Recordset*() { return m_rs; } CVOConnection m_rConn; Fields* m_Fields; _Recordset* m_rs; protected: BOOL m_fIsOpen; Field* m_Field; long m_FldCnt; static TCHAR* g_ProgID; static CLSID g_ClsID; }; #endif // !defined(AFX_VORECORDSET_H__B81BD14E_98F0_42A7_A64F_3FA21F5A3E5D__INCLUDED_)