?? msado20.tli
字號:
inline HRESULT _Recordset15::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 _Recordset15::Requery ( long Options ) {
HRESULT _hr = raw_Requery(Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset15::_xResync ( enum AffectEnum AffectRecords ) {
HRESULT _hr = raw__xResync(AffectRecords);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Recordset15::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 enum PositionEnum _Recordset15::GetAbsolutePage ( ) {
enum PositionEnum _result;
HRESULT _hr = get_AbsolutePage(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset15::PutAbsolutePage ( enum PositionEnum pl ) {
HRESULT _hr = put_AbsolutePage(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum EditModeEnum _Recordset15::GetEditMode ( ) {
enum EditModeEnum _result;
HRESULT _hr = get_EditMode(&_result);
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 long _Recordset15::GetPageCount ( ) {
long _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, 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;
}
//
// interface _Recordset wrapper method implementations
//
inline HRESULT _Recordset::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IUnknownPtr _Recordset::GetDataSource ( ) {
IUnknown * _result;
HRESULT _hr = get_DataSource(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void _Recordset::PutRefDataSource ( IUnknown * ppunkDataSource ) {
HRESULT _hr = putref_DataSource(ppunkDataSource);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT _Recordset::Save ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
HRESULT _hr = raw_Save(FileName, PersistFormat);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr _Recordset::GetActiveCommand ( ) {
IDispatch * _result;
HRESULT _hr = get_ActiveCommand(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline void _Recordset::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
HRESULT _hr = put_StayInSync(pbStayInSync);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Recordset::GetStayInSync ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_StayInSync(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _Recordset::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 _Recordset::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 _Recordset::PutDataMember ( _bstr_t pbstrDataMember ) {
HRESULT _hr = put_DataMember(pbstrDataMember);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum CompareEnum _Recordset::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 _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::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 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 Fields wrapper method implementations
//
inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long 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 Fields::Delete ( const _variant_t & Index ) {
HRESULT _hr = raw_Delete(Index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// 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 ( ) {
long _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Field::GetDefinedSize ( ) {
long _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Field::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 Field::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Field::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 + -