📄 dao360.tli
字号:
float _result;
HRESULT _hr = get_PercentPosition(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset::PutPercentPosition ( float pd ) {
HRESULT _hr = put_PercentPosition(pd);
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 pl ) {
HRESULT _hr = put_AbsolutePosition(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short Recordset::GetEditMode ( ) {
short _result;
HRESULT _hr = get_EditMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset::GetODBCFetchCount ( ) {
long _result;
HRESULT _hr = get_ODBCFetchCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset::GetODBCFetchDelay ( ) {
long _result;
HRESULT _hr = get_ODBCFetchDelay(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline DatabasePtr Recordset::GetParent ( ) {
struct Database * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return DatabasePtr(_result, false);
}
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 IndexesPtr Recordset::GetIndexes ( ) {
struct Indexes * _result;
HRESULT _hr = get_Indexes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IndexesPtr(_result, false);
}
inline HRESULT Recordset::_30_CancelUpdate ( ) {
HRESULT _hr = raw__30_CancelUpdate();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::AddNew ( ) {
HRESULT _hr = raw_AddNew();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline RecordsetPtr Recordset::OpenRecordset ( const _variant_t & Type, const _variant_t & Options ) {
struct Recordset * _result;
HRESULT _hr = raw_OpenRecordset(Type, Options, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline HRESULT Recordset::Delete ( ) {
HRESULT _hr = raw_Delete();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::Edit ( ) {
HRESULT _hr = raw_Edit();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::FindFirst ( _bstr_t Criteria ) {
HRESULT _hr = raw_FindFirst(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::FindLast ( _bstr_t Criteria ) {
HRESULT _hr = raw_FindLast(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::FindNext ( _bstr_t Criteria ) {
HRESULT _hr = raw_FindNext(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::FindPrevious ( _bstr_t Criteria ) {
HRESULT _hr = raw_FindPrevious(Criteria);
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::_30_MoveLast ( ) {
HRESULT _hr = raw__30_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::Seek ( _bstr_t Comparison, const _variant_t & Key1, const _variant_t & Key2, const _variant_t & Key3, const _variant_t & Key4, const _variant_t & Key5, const _variant_t & Key6, const _variant_t & Key7, const _variant_t & Key8, const _variant_t & Key9, const _variant_t & Key10, const _variant_t & Key11, const _variant_t & Key12, const _variant_t & Key13 ) {
HRESULT _hr = raw_Seek(Comparison, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::_30_Update ( ) {
HRESULT _hr = raw__30_Update();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline RecordsetPtr Recordset::Clone ( ) {
struct Recordset * _result;
HRESULT _hr = raw_Clone(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline HRESULT Recordset::Requery ( const _variant_t & NewQueryDef ) {
HRESULT _hr = raw_Requery(NewQueryDef);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::Move ( long Rows, const _variant_t & StartBookmark ) {
HRESULT _hr = raw_Move(Rows, StartBookmark);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::FillCache ( const _variant_t & Rows, const _variant_t & StartBookmark ) {
HRESULT _hr = raw_FillCache(Rows, StartBookmark);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline RecordsetPtr Recordset::CreateDynaset ( const _variant_t & Options, const _variant_t & Inconsistent ) {
struct Recordset * _result;
HRESULT _hr = raw_CreateDynaset(Options, Inconsistent, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline RecordsetPtr Recordset::CreateSnapshot ( const _variant_t & Options ) {
struct Recordset * _result;
HRESULT _hr = raw_CreateSnapshot(Options, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline _QueryDefPtr Recordset::CopyQueryDef ( ) {
struct _QueryDef * _result;
HRESULT _hr = raw_CopyQueryDef(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _QueryDefPtr(_result, false);
}
inline RecordsetPtr Recordset::ListFields ( ) {
struct Recordset * _result;
HRESULT _hr = raw_ListFields(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline RecordsetPtr Recordset::ListIndexes ( ) {
struct Recordset * _result;
HRESULT _hr = raw_ListIndexes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline _variant_t Recordset::GetRows ( const _variant_t & NumRows ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetRows(NumRows, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t Recordset::GetCollect ( const _variant_t & Item ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Collect(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void Recordset::PutCollect ( const _variant_t & Item, const _variant_t & pvar ) {
HRESULT _hr = put_Collect(Item, pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT Recordset::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL Recordset::NextRecordset ( ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_NextRecordset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset::GethStmt ( ) {
long _result;
HRESULT _hr = get_hStmt(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL Recordset::GetStillExecuting ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_StillExecuting(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset::GetBatchSize ( ) {
long _result;
HRESULT _hr = get_BatchSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset::PutBatchSize ( long pl ) {
HRESULT _hr = put_BatchSize(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Recordset::GetBatchCollisionCount ( ) {
long _result;
HRESULT _hr = get_BatchCollisionCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Recordset::GetBatchCollisions ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_BatchCollisions(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline ConnectionPtr Recordset::GetConnection ( ) {
struct Connection * _result;
HRESULT _hr = get_Connection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ConnectionPtr(_result, false);
}
inline void Recordset::PutRefConnection ( struct Connection * ppCn ) {
HRESULT _hr = putref_Connection(ppCn);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short Recordset::GetRecordStatus ( ) {
short _result;
HRESULT _hr = get_RecordStatus(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset::GetUpdateOptions ( ) {
long _result;
HRESULT _hr = get_UpdateOptions(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset::PutUpdateOptions ( long pl ) {
HRESULT _hr = put_UpdateOptions(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT Recordset::CancelUpdate ( long UpdateType ) {
HRESULT _hr = raw_CancelUpdate(UpdateType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::Update ( long UpdateType, VARIANT_BOOL Force ) {
HRESULT _hr = raw_Update(UpdateType, Force);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset::MoveLast ( long Options ) {
HRESULT _hr = raw_MoveLast(Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _QueryDef wrapper method implementations
//
inline _variant_t _QueryDef::GetDateCreated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateCreated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t _QueryDef::GetLastUpdated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_LastUpdated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _bstr_t _QueryDef::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _QueryDef::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short _QueryDef::GetODBCTimeout ( ) {
short _result;
HRESULT _hr = get_ODBCTimeout(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _QueryDef::PutODBCTimeout ( short ps ) {
HRESULT _hr = put_ODBCTimeout(ps);
if
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -