📄 msado15.tli
字号:
inline void Field20::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char Field20::GetPrecision ( ) {
unsigned char _result;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline unsigned char Field20::GetNumericScale ( ) {
unsigned char _result;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
HRESULT _hr = raw_AppendChunk(Data);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t Field20::GetChunk ( long Length ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetChunk(Length, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t Field20::GetOriginalValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_OriginalValue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t Field20::GetUnderlyingValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_UnderlyingValue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline IUnknownPtr Field20::GetDataFormat ( ) {
IUnknown * _result;
HRESULT _hr = get_DataFormat(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
HRESULT _hr = putref_DataFormat(ppiDF);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
HRESULT _hr = put_Precision(pbPrecision);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
HRESULT _hr = put_NumericScale(pbNumericScale);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
HRESULT _hr = put_Type(pDataType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutDefinedSize ( ADO_LONGPTR pl ) {
HRESULT _hr = put_DefinedSize(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutAttributes ( long pl ) {
HRESULT _hr = put_Attributes(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Field wrapper method implementations
//
inline long Field::GetStatus ( ) {
long _result;
HRESULT _hr = get_Status(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface _Parameter wrapper method implementations
//
inline _bstr_t _Parameter::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 _Parameter::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Parameter::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);
}
inline void _Parameter::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum DataTypeEnum _Parameter::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
HRESULT _hr = put_Type(psDataType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
HRESULT _hr = put_Direction(plParmDirection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
enum ParameterDirectionEnum _result;
HRESULT _hr = get_Direction(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
HRESULT _hr = put_Precision(pbPrecision);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Parameter::GetPrecision ( ) {
unsigned char _result;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
HRESULT _hr = put_NumericScale(pbScale);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Parameter::GetNumericScale ( ) {
unsigned char _result;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutSize ( ADO_LONGPTR pl ) {
HRESULT _hr = put_Size(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ADO_LONGPTR _Parameter::GetSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_Size(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
HRESULT _hr = raw_AppendChunk(Val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long _Parameter::GetAttributes ( ) {
long _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutAttributes ( long plParmAttribs ) {
HRESULT _hr = put_Attributes(plParmAttribs);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Parameters wrapper method implementations
//
inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
struct _Parameter * _result;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ParameterPtr(_result, false);
}
//
// interface Command25 wrapper method implementations
//
inline long Command25::GetState ( ) {
long _result;
HRESULT _hr = get_State(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT Command25::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Command wrapper method implementations
//
inline void _Command::PutRefCommandStream ( IUnknown * pvStream ) {
HRESULT _hr = putref_CommandStream(pvStream);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Command::GetCommandStream ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_CommandStream(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Command::PutDialect ( _bstr_t pbstrDialect ) {
HRESULT _hr = put_Dialect(pbstrDialect);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Command::GetDialect ( ) {
BSTR _result;
HRESULT _hr = get_Dialect(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Command::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
HRESULT _hr = put_NamedParameters(pfNamedParameters);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Command::GetNamedParameters ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_NamedParameters(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ConnectionEventsVt wrapper method implementations
//
inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _hr = raw_Disconnect(adStatus, pConnection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface RecordsetEventsVt wrapper method implementations
//
inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -