⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adosamp.tli

📁 客户端服务器源码
💻 TLI
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (80b86a43).
//
// ADOSamp.tli
//
// Wrapper implementations for Win32 type library ..\ADO\Server\ADOSamp.tlb
// compiler-generated file created 07/30/03 at 13:07:07 - DO NOT EDIT!

#pragma once

//
// interface IADOTier wrapper method implementations
//

inline HRESULT IADOTier::Open ( _bstr_t Computer, _bstr_t dbName, _bstr_t dbUser, _bstr_t dbPsw ) {
    HRESULT _hr = raw_Open(Computer, dbName, dbUser, dbPsw);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::OpenRecordset ( const _variant_t & query ) {
    HRESULT _hr = raw_OpenRecordset(query);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::CloseRecordset ( ) {
    HRESULT _hr = raw_CloseRecordset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::ExecuteConnection ( _bstr_t query, VARIANT_BOOL bChangeRec ) {
    HRESULT _hr = raw_ExecuteConnection(query, bChangeRec);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::ExecuteCommand ( VARIANT_BOOL bStoredProcedure, VARIANT_BOOL bChangeRec ) {
    HRESULT _hr = raw_ExecuteCommand(bStoredProcedure, bChangeRec);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IADOTier::GetCommandText ( ) {
    BSTR _result;
    HRESULT _hr = get_CommandText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IADOTier::PutCommandText ( _bstr_t pVal ) {
    HRESULT _hr = put_CommandText(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IADOTier::AppendParameter ( enum DataTypeEnum type, const _variant_t & value, enum ParameterDirectionEnum where, long size ) {
    HRESULT _hr = raw_AppendParameter(type, value, where, size);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _variant_t IADOTier::GetField ( const _variant_t & idx ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Field(idx, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IADOTier::PutField ( const _variant_t & idx, const _variant_t & pVal ) {
    HRESULT _hr = put_Field(idx, pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IADOTier::GetFieldCount ( ) {
    long _result;
    HRESULT _hr = get_FieldCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IADOTier::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::First ( ) {
    HRESULT _hr = raw_First();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Next ( ) {
    HRESULT _hr = raw_Next();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Last ( ) {
    HRESULT _hr = raw_Last();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Prev ( ) {
    HRESULT _hr = raw_Prev();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IADOTier::GetADOEOF ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_ADOEOF(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IADOTier::GetBOF ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_BOF(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IADOTier::ParamQuery ( _bstr_t query, long idx1, _bstr_t idx2, _bstr_t idx3 ) {
    HRESULT _hr = raw_ParamQuery(query, idx1, idx2, idx3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::CallStoredProc ( long idx1, _bstr_t idx2, _bstr_t idx3 ) {
    HRESULT _hr = raw_CallStoredProc(idx1, idx2, idx3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline void IADOTier::PutStoredProc ( _bstr_t _arg1 ) {
    HRESULT _hr = put_StoredProc(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IADOTier::ChangeParameter ( long idx, enum DataTypeEnum type, const _variant_t & value, enum ParameterDirectionEnum where, long size ) {
    HRESULT _hr = raw_ChangeParameter(idx, type, value, where, size);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Requery ( ) {
    HRESULT _hr = raw_Requery();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::ADORelease ( ) {
    HRESULT _hr = raw_ADORelease();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IADOTier::GetEmpty ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Empty(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IADOTier::GetRecordCount ( ) {
    long _result;
    HRESULT _hr = get_RecordCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr IADOTier::GetRs ( const _variant_t & vSql ) {
    IDispatch * _result;
    HRESULT _hr = raw_GetRs(vSql, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT IADOTier::CancelBatch ( ) {
    HRESULT _hr = raw_CancelBatch();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::Cancel ( ) {
    HRESULT _hr = raw_Cancel();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::CancelUpdate ( ) {
    HRESULT _hr = raw_CancelUpdate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IADOTier::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 IADOTier::Find ( _bstr_t Criteria ) {
    HRESULT _hr = raw_Find(Criteria);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _variant_t IADOTier::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 IADOTier::PutBookMark ( const _variant_t & pVal ) {
    HRESULT _hr = put_BookMark(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IADOTier::GetFieldName ( const _variant_t & idx ) {
    BSTR _result;
    HRESULT _hr = get_FieldName(idx, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long IADOTier::GetFieldDefSize ( const _variant_t & idx ) {
    long _result;
    HRESULT _hr = get_FieldDefSize(idx, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -