adorrecset.cpp
资源名称:propgrid.zip [点击查看]
上传用户:yangzi5763
上传日期:2007-01-02
资源大小:239k
文件大小:17k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // Machine generated IDispatch wrapper class(es) created with ClassWizard
- #include "stdafx.h"
- #include "adorrecset.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CADORRecordset properties
- /////////////////////////////////////////////////////////////////////////////
- // CADORRecordset operations
- LPDISPATCH CADORRecordset::GetProperties()
- {
- LPDISPATCH result;
- InvokeHelper(0x1f4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- long CADORRecordset::GetAbsolutePosition()
- {
- long result;
- InvokeHelper(0x3e8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetAbsolutePosition(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3e8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- void CADORRecordset::SetRefActiveConnection(LPDISPATCH newValue)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x3e9, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
- newValue);
- }
- void CADORRecordset::SetActiveConnection(const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3e9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &newValue);
- }
- VARIANT CADORRecordset::GetActiveConnection()
- {
- VARIANT result;
- InvokeHelper(0x3e9, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- BOOL CADORRecordset::GetBof()
- {
- BOOL result;
- InvokeHelper(0x3ea, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- VARIANT CADORRecordset::GetBookmark()
- {
- VARIANT result;
- InvokeHelper(0x3eb, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetBookmark(const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3eb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &newValue);
- }
- long CADORRecordset::GetCacheSize()
- {
- long result;
- InvokeHelper(0x3ec, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetCacheSize(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3ec, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CADORRecordset::GetCursorType()
- {
- long result;
- InvokeHelper(0x3ed, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetCursorType(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3ed, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- BOOL CADORRecordset::GetEof()
- {
- BOOL result;
- InvokeHelper(0x3ee, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- LPDISPATCH CADORRecordset::GetFields()
- {
- LPDISPATCH result;
- InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- long CADORRecordset::GetLockType()
- {
- long result;
- InvokeHelper(0x3f0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetLockType(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3f0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CADORRecordset::GetMaxRecords()
- {
- long result;
- InvokeHelper(0x3f1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetMaxRecords(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3f1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CADORRecordset::GetRecordCount()
- {
- long result;
- InvokeHelper(0x3f2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetRefSource(LPDISPATCH newValue)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x3f3, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
- newValue);
- }
- void CADORRecordset::SetSource(LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x3f3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- lpszNewValue);
- }
- VARIANT CADORRecordset::GetSource()
- {
- VARIANT result;
- InvokeHelper(0x3f3, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::AddNew(const VARIANT& FieldList, const VARIANT& Values)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x3f4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FieldList, &Values);
- }
- void CADORRecordset::CancelUpdate()
- {
- InvokeHelper(0x3f5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::Close()
- {
- InvokeHelper(0x3f6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::Delete(long AffectRecords)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3f7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- AffectRecords);
- }
- VARIANT CADORRecordset::GetRows(long Rows, const VARIANT& Start, const VARIANT& Fields)
- {
- VARIANT result;
- static BYTE parms[] =
- VTS_I4 VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x3f8, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
- Rows, &Start, &Fields);
- return result;
- }
- void CADORRecordset::Move(long NumRecords, const VARIANT& Start)
- {
- static BYTE parms[] =
- VTS_I4 VTS_VARIANT;
- InvokeHelper(0x3f9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- NumRecords, &Start);
- }
- void CADORRecordset::MoveNext()
- {
- InvokeHelper(0x3fa, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::MovePrevious()
- {
- InvokeHelper(0x3fb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::MoveFirst()
- {
- InvokeHelper(0x3fc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::MoveLast()
- {
- InvokeHelper(0x3fd, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CADORRecordset::Open(const VARIANT& Source, const VARIANT& ActiveConnection, long CursorType, long LockType, long Options)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_I4 VTS_I4 VTS_I4;
- InvokeHelper(0x3fe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Source, &ActiveConnection, CursorType, LockType, Options);
- }
- void CADORRecordset::Requery(long Options)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3ff, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Options);
- }
- void CADORRecordset::Update(const VARIANT& Fields, const VARIANT& Values)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x401, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Fields, &Values);
- }
- long CADORRecordset::GetAbsolutePage()
- {
- long result;
- InvokeHelper(0x417, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetAbsolutePage(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x417, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CADORRecordset::GetEditMode()
- {
- long result;
- InvokeHelper(0x402, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- VARIANT CADORRecordset::GetFilter()
- {
- VARIANT result;
- InvokeHelper(0x406, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetFilter(const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x406, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &newValue);
- }
- long CADORRecordset::GetPageCount()
- {
- long result;
- InvokeHelper(0x41a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long CADORRecordset::GetPageSize()
- {
- long result;
- InvokeHelper(0x418, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetPageSize(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x418, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- CString CADORRecordset::GetSort()
- {
- CString result;
- InvokeHelper(0x407, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetSort(LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x407, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- lpszNewValue);
- }
- long CADORRecordset::GetStatus()
- {
- long result;
- InvokeHelper(0x405, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long CADORRecordset::GetState()
- {
- long result;
- InvokeHelper(0x41e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::UpdateBatch(long AffectRecords)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x40b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- AffectRecords);
- }
- void CADORRecordset::CancelBatch(long AffectRecords)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x419, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- AffectRecords);
- }
- long CADORRecordset::GetCursorLocation()
- {
- long result;
- InvokeHelper(0x41b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetCursorLocation(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x41b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- LPDISPATCH CADORRecordset::NextRecordset(VARIANT* RecordsAffected)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_PVARIANT;
- InvokeHelper(0x41c, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- RecordsAffected);
- return result;
- }
- BOOL CADORRecordset::Supports(long CursorOptions)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x40c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- CursorOptions);
- return result;
- }
- long CADORRecordset::GetMarshalOptions()
- {
- long result;
- InvokeHelper(0x41d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetMarshalOptions(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x41d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- void CADORRecordset::Find(LPCTSTR Criteria, long SkipRecords, long SearchDirection, const VARIANT& Start)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I4 VTS_I4 VTS_VARIANT;
- InvokeHelper(0x422, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Criteria, SkipRecords, SearchDirection, &Start);
- }
- void CADORRecordset::Cancel()
- {
- InvokeHelper(0x41f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- LPUNKNOWN CADORRecordset::GetDataSource()
- {
- LPUNKNOWN result;
- InvokeHelper(0x420, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetRefDataSource(LPUNKNOWN newValue)
- {
- static BYTE parms[] =
- VTS_UNKNOWN;
- InvokeHelper(0x420, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
- newValue);
- }
- void CADORRecordset::Save(LPCTSTR FileName, long PersistFormat)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I4;
- InvokeHelper(0x421, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- FileName, PersistFormat);
- }
- LPDISPATCH CADORRecordset::GetActiveCommand()
- {
- LPDISPATCH result;
- InvokeHelper(0x425, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetStayInSync(BOOL bNewValue)
- {
- static BYTE parms[] =
- VTS_BOOL;
- InvokeHelper(0x427, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- bNewValue);
- }
- BOOL CADORRecordset::GetStayInSync()
- {
- BOOL result;
- InvokeHelper(0x427, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- CString CADORRecordset::GetString(long StringFormat, long NumRows, LPCTSTR ColumnDelimeter, LPCTSTR RowDelimeter, LPCTSTR NullExpr)
- {
- CString result;
- static BYTE parms[] =
- VTS_I4 VTS_I4 VTS_BSTR VTS_BSTR VTS_BSTR;
- InvokeHelper(0x426, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
- StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr);
- return result;
- }
- CString CADORRecordset::GetDataMember()
- {
- CString result;
- InvokeHelper(0x428, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- void CADORRecordset::SetDataMember(LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x428, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- lpszNewValue);
- }
- long CADORRecordset::CompareBookmarks(const VARIANT& Bookmark1, const VARIANT& Bookmark2)
- {
- long result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x429, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
- &Bookmark1, &Bookmark2);
- return result;
- }
- LPDISPATCH CADORRecordset::Clone(long LockType)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x40a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- LockType);
- return result;
- }
- void CADORRecordset::Resync(long AffectRecords, long ResyncValues)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x400, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- AffectRecords, ResyncValues);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CADORFields properties
- /////////////////////////////////////////////////////////////////////////////
- // CADORFields operations
- long CADORFields::GetCount()
- {
- long result;
- InvokeHelper(0x60020000, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CADORFields::Refresh()
- {
- InvokeHelper(0x60020002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- LPDISPATCH CADORFields::GetItem(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return result;
- }
- void CADORFields::Append(LPCTSTR Name, long Type, long DefinedSize, long Attrib)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I4 VTS_I4 VTS_I4;
- InvokeHelper(0x60040000, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Name, Type, DefinedSize, Attrib);
- }
- void CADORFields::Delete(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x60040001, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CADORField properties
- /////////////////////////////////////////////////////////////////////////////
- // CADORField operations
- LPDISPATCH CADORField::GetProperties()
- {
- LPDISPATCH result;
- InvokeHelper(0x1f4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- long CADORField::GetActualSize()
- {
- long result;
- InvokeHelper(0x455, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long CADORField::GetAttributes()
- {
- long result;
- InvokeHelper(0x40c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long CADORField::GetDefinedSize()
- {
- long result;
- InvokeHelper(0x44f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- CString CADORField::GetName()
- {
- CString result;
- InvokeHelper(0x44c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- long CADORField::GetType()
- {
- long result;
- InvokeHelper(0x44e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- VARIANT CADORField::GetValue()
- {
- VARIANT result;
- InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- void CADORField::SetValue(const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &newValue);
- }
- void CADORField::AppendChunk(const VARIANT& Data)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x453, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Data);
- }
- VARIANT CADORField::GetChunk(long Length)
- {
- VARIANT result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x454, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
- Length);
- return result;
- }
- VARIANT CADORField::GetOriginalValue()
- {
- VARIANT result;
- InvokeHelper(0x450, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- VARIANT CADORField::GetUnderlyingValue()
- {
- VARIANT result;
- InvokeHelper(0x451, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- LPUNKNOWN CADORField::GetDataFormat()
- {
- LPUNKNOWN result;
- InvokeHelper(0x6003000d, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
- return result;
- }
- void CADORField::SetRefDataFormat(LPUNKNOWN newValue)
- {
- static BYTE parms[] =
- VTS_UNKNOWN;
- InvokeHelper(0x6003000d, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
- newValue);
- }
- void CADORField::SetType(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x44e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- void CADORField::SetDefinedSize(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x44f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- void CADORField::SetAttributes(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x40c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }