home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
mfc
/
database
/
mdibind
/
rdoreslt.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-03-26
|
9KB
|
403 lines
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "rdoreslt.h"
// Dispatch interfaces referenced by this interface
#include "rdoCols.h"
/////////////////////////////////////////////////////////////////////////////
// CrdoResultset properties
/////////////////////////////////////////////////////////////////////////////
// CrdoResultset operations
VARIANT CrdoResultset::GetBookmark()
{
VARIANT result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetBookmark(const VARIANT& newValue)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
&newValue);
}
CrdoColumns CrdoResultset::GetRdoColumns()
{
LPDISPATCH pDispatch;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
return CrdoColumns(pDispatch);
}
BOOL CrdoResultset::GetBof()
{
BOOL result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CrdoResultset::GetBookmarkable()
{
BOOL result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CrdoResultset::GetEof()
{
BOOL result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CrdoResultset::GetLockEdits()
{
BOOL result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
CString CrdoResultset::GetName()
{
CString result;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetName(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}
BOOL CrdoResultset::GetTransactions()
{
BOOL result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetType()
{
long result;
InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetRowCount()
{
long result;
InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
BOOL CrdoResultset::GetUpdatable()
{
BOOL result;
InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CrdoResultset::GetRestartable()
{
BOOL result;
InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetEditMode()
{
long result;
InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
float CrdoResultset::GetPercentPosition()
{
float result;
InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetPercentPosition(float newValue)
{
static BYTE parms[] =
VTS_R4;
InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
long CrdoResultset::GetHStmt()
{
long result;
InvokeHelper(0x1f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetAbsolutePosition()
{
long result;
InvokeHelper(0x20, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetAbsolutePosition(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x20, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
BOOL CrdoResultset::GetStillExecuting()
{
BOOL result;
InvokeHelper(0x21, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
return result;
}
VARIANT CrdoResultset::GetLastModified()
{
VARIANT result;
InvokeHelper(0x22, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetBatchSize()
{
long result;
InvokeHelper(0x29, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetBatchSize(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x29, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
short CrdoResultset::GetUpdateOperation()
{
short result;
InvokeHelper(0x2a, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetUpdateOperation(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x2a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
short CrdoResultset::GetUpdateCriteria()
{
short result;
InvokeHelper(0x2b, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetUpdateCriteria(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x2b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
void CrdoResultset::AddNew()
{
InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::Close()
{
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::Delete()
{
InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::Edit()
{
InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::MoveFirst()
{
InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::MoveLast(const VARIANT& Options)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&Options);
}
void CrdoResultset::MoveNext()
{
InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::MovePrevious()
{
InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::Update()
{
InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::Requery(const VARIANT& Options)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&Options);
}
void CrdoResultset::Move(long Rows, const VARIANT& Start)
{
static BYTE parms[] =
VTS_I4 VTS_VARIANT;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Rows, &Start);
}
BOOL CrdoResultset::MoreResults()
{
BOOL result;
InvokeHelper(0x18, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
void CrdoResultset::Cancel()
{
InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CrdoResultset::CancelUpdate()
{
InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
VARIANT CrdoResultset::GetRows(const VARIANT& NumRows)
{
VARIANT result;
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x23, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
&NumRows);
return result;
}
void CrdoResultset::BatchUpdate(const VARIANT& SingleRow, const VARIANT& Force)
{
static BYTE parms[] =
VTS_VARIANT VTS_VARIANT;
InvokeHelper(0x2c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&SingleRow, &Force);
}
void CrdoResultset::CancelBatch(const VARIANT& SingleRow)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x2d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&SingleRow);
}
LPDISPATCH CrdoResultset::GetActiveConnection()
{
LPDISPATCH result;
InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetRefActiveConnection(LPDISPATCH newValue)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x24, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
newValue);
}
long CrdoResultset::GetBatchCollisionCount()
{
long result;
InvokeHelper(0x25, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
VARIANT CrdoResultset::GetBatchCollisionRows()
{
VARIANT result;
InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
return result;
}
long CrdoResultset::GetLockType()
{
long result;
InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetLockType(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
long CrdoResultset::GetStatus()
{
long result;
InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CrdoResultset::SetStatus(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x28, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
CString CrdoResultset::GetClipString(long NumRows, const VARIANT& ColumnDelimiter, const VARIANT& RowDelimiter, const VARIANT& NullExpr)
{
CString result;
static BYTE parms[] =
VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT;
InvokeHelper(0x2e, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
NumRows, &ColumnDelimiter, &RowDelimiter, &NullExpr);
return result;
}
void CrdoResultset::Resync()
{
InvokeHelper(0x2f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}