📄 msado15.tli
字号:
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Recordset15::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 Recordset15::PutFilter ( const _variant_t & Criteria ) {
HRESULT _hr = put_Filter(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ADO_LONGPTR Recordset15::GetPageCount ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_PageCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset15::GetPageSize ( ) {
long _result;
HRESULT _hr = get_PageSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset15::PutPageSize ( long pl ) {
HRESULT _hr = put_PageSize(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t Recordset15::GetSort ( ) {
BSTR _result;
HRESULT _hr = get_Sort(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void Recordset15::PutSort ( _bstr_t Criteria ) {
HRESULT _hr = put_Sort(Criteria);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Recordset15::GetStatus ( ) {
long _result;
HRESULT _hr = get_Status(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Recordset15::GetState ( ) {
long _result;
HRESULT _hr = get_State(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _RecordsetPtr Recordset15::_xClone ( ) {
struct _Recordset * _result;
HRESULT _hr = raw__xClone(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) {
HRESULT _hr = raw_UpdateBatch(AffectRecords);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) {
HRESULT _hr = raw_CancelBatch(AffectRecords);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) {
enum CursorLocationEnum _result;
HRESULT _hr = get_CursorLocation(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
HRESULT _hr = put_CursorLocation(plCursorLoc);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
struct _Recordset * _result;
HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline VARIANT_BOOL Recordset15::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 _variant_t Recordset15::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);
}
inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
HRESULT _hr = put_Collect(Index, pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) {
enum MarshalOptionsEnum _result;
HRESULT _hr = get_MarshalOptions(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
HRESULT _hr = put_MarshalOptions(peMarshal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT Recordset15::Find ( _bstr_t Criteria, ADO_LONGPTR 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;
}
//
// interface Recordset20 wrapper method implementations
//
inline HRESULT Recordset20::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IUnknownPtr Recordset20::GetDataSource ( ) {
IUnknown * _result;
HRESULT _hr = get_DataSource(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) {
HRESULT _hr = putref_DataSource(ppunkDataSource);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
HRESULT _hr = raw__xSave(FileName, PersistFormat);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr Recordset20::GetActiveCommand ( ) {
IDispatch * _result;
HRESULT _hr = get_ActiveCommand(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
HRESULT _hr = put_StayInSync(pbStayInSync);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL Recordset20::GetStayInSync ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_StayInSync(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
BSTR _result;
HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t Recordset20::GetDataMember ( ) {
BSTR _result;
HRESULT _hr = get_DataMember(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) {
HRESULT _hr = put_DataMember(pbstrDataMember);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
enum CompareEnum _result;
HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _RecordsetPtr Recordset20::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 Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Recordset21 wrapper method implementations
//
inline HRESULT Recordset21::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 void Recordset21::PutIndex ( _bstr_t pbstrIndex ) {
HRESULT _hr = put_Index(pbstrIndex);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t Recordset21::GetIndex ( ) {
BSTR _result;
HRESULT _hr = get_Index(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface _Recordset wrapper method implementations
//
inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
HRESULT _hr = raw_Save(Destination, PersistFormat);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Fields15 wrapper method implementations
//
inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
struct Field * _result;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FieldPtr(_result, false);
}
//
// interface Fields20 wrapper method implementations
//
inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib ) {
HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
HRESULT _hr = raw_Delete(Index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Fields wrapper method implementations
//
inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::Update ( ) {
HRESULT _hr = raw_Update();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
HRESULT _hr = raw_Resync(ResyncValues);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::CancelUpdate ( ) {
HRESULT _hr = raw_CancelUpdate();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Field20 wrapper method implementations
//
inline ADO_LONGPTR Field20::GetActualSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_ActualSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Field20::GetAttributes ( ) {
long _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ADO_LONGPTR Field20::GetDefinedSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Field20::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline enum DataTypeEnum Field20::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Field20::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -