📄 adoce31.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (f0533e1e).
//
// adoce31.tli
//
// Wrapper implementations for Win32 type library C:\Windows CE Tools\wce300\Pocket PC 2002\include\adoce31.tlb
// compiler-generated file created 08/06/03 at 23:50:49 - DO NOT EDIT!
#pragma once
//
// interface _Recordset wrapper method implementations
//
inline HRESULT _Recordset::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
HRESULT _hr = raw_AddNew(FieldList, Values);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::CancelUpdate ( ) {
HRESULT _hr = raw_CancelUpdate();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _RecordsetPtr _Recordset::Clone ( enum LockTypeEnum LockType ) {
struct _Recordset * _result;
HRESULT _hr = raw_Clone(LockType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline HRESULT _Recordset::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::Delete ( long AffectRecords ) {
HRESULT _hr = raw_Delete(AffectRecords);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t _Recordset::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline HRESULT _Recordset::Move ( long NumRecords, const _variant_t & Start ) {
HRESULT _hr = raw_Move(NumRecords, Start);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::MoveFirst ( ) {
HRESULT _hr = raw_MoveFirst();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::MoveLast ( ) {
HRESULT _hr = raw_MoveLast();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::MoveNext ( ) {
HRESULT _hr = raw_MoveNext();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::MovePrevious ( ) {
HRESULT _hr = raw_MovePrevious();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::Requery ( ) {
HRESULT _hr = raw_Requery();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL _Recordset::Supports ( enum CursorOptionEnum CursorOptions ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_Supports(CursorOptions, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT _Recordset::Update ( const _variant_t & Fields, const _variant_t & Values ) {
HRESULT _hr = raw_Update(Fields, Values);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long _Recordset::GetAbsolutePage ( ) {
long _result;
HRESULT _hr = get_AbsolutePage(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutAbsolutePage ( long pVal ) {
HRESULT _hr = put_AbsolutePage(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Recordset::GetAbsolutePosition ( ) {
long _result;
HRESULT _hr = get_AbsolutePosition(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutAbsolutePosition ( long pVal ) {
HRESULT _hr = put_AbsolutePosition(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Recordset::GetBOF ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_BOF(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t _Recordset::GetBookmark ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Bookmark(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Recordset::PutBookmark ( const _variant_t & pVal ) {
HRESULT _hr = put_Bookmark(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Recordset::GetCacheSize ( ) {
long _result;
HRESULT _hr = get_CacheSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutCacheSize ( long pVal ) {
HRESULT _hr = put_CacheSize(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum CursorTypeEnum _Recordset::GetCursorType ( ) {
enum CursorTypeEnum _result;
HRESULT _hr = get_CursorType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutCursorType ( enum CursorTypeEnum pVal ) {
HRESULT _hr = put_CursorType(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum EditModeEnum _Recordset::GetEditMode ( ) {
enum EditModeEnum _result;
HRESULT _hr = get_EditMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL _Recordset::GetEndOfFile ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_EndOfFile(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline FieldsPtr _Recordset::GetFields ( ) {
struct Fields * _result;
HRESULT _hr = get_Fields(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FieldsPtr(_result, false);
}
inline enum LockTypeEnum _Recordset::GetLockType ( ) {
enum LockTypeEnum _result;
HRESULT _hr = get_LockType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutLockType ( enum LockTypeEnum pVal ) {
HRESULT _hr = put_LockType(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Recordset::GetPageCount ( ) {
long _result;
HRESULT _hr = get_PageCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long _Recordset::GetPageSize ( ) {
long _result;
HRESULT _hr = get_PageSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset::PutPageSize ( long pVal ) {
HRESULT _hr = put_PageSize(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Recordset::GetRecordCount ( ) {
long _result;
HRESULT _hr = get_RecordCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _Recordset::GetSource ( ) {
BSTR _result;
HRESULT _hr = get_Source(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Recordset::PutSource ( _bstr_t pVal ) {
HRESULT _hr = put_Source(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Recordset::PutRefSource ( IDispatch * pVal ) {
HRESULT _hr = putref_Source(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Recordset::PutRefActiveConnection ( const _variant_t & pConn ) {
HRESULT _hr = putref_ActiveConnection(pConn);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Recordset::GetActiveConnection ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_ActiveConnection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Recordset::PutActiveConnection ( const _variant_t & pConn ) {
HRESULT _hr = put_ActiveConnection(pConn);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT _Recordset::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
HRESULT _hr = raw_Seek(KeyValues, SeekOption);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t _Recordset::Getindex ( ) {
BSTR _result;
HRESULT _hr = get_index(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Recordset::Putindex ( _bstr_t pbstrIndex ) {
HRESULT _hr = put_index(pbstrIndex);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Recordset::GetFilter ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Filter(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Recordset::PutFilter ( const _variant_t & Criteria ) {
HRESULT _hr = put_Filter(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline PropertiesPtr _Recordset::GetProperties ( ) {
struct Properties * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertiesPtr(_result, false);
}
inline long _Recordset::GetState ( ) {
long _result;
HRESULT _hr = get_State(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t _Recordset::GetCollect ( const _variant_t & index ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Collect(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
//
// interface _Collection wrapper method implementations
//
inline long _Collection::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _Collection::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _Collection::Refresh ( ) {
HRESULT _hr = raw_Refresh();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline void _Collection::GetElement ( VARIANT * pvar, int index ) {
HRESULT _hr = get_Element(pvar, index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Fields wrapper method implementations
//
inline FieldPtr Fields::GetItem ( const _variant_t & varIndex ) {
struct Field * _result;
HRESULT _hr = get_Item(varIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FieldPtr(_result, false);
}
//
// interface Field wrapper method implementations
//
inline long Field::GetActualSize ( ) {
long _result;
HRESULT _hr = get_ActualSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Field::GetAttributes ( ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -