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

📄 vbe6ext.tli

📁 word 插件 在word2003+ vc6.0 条件下运行 可以单击弹出atl 的窗口 简单可实现
💻 TLI
📖 第 1 页 / 共 4 页
字号:
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _VBComponentPtr(_result, false);
}

inline _VBComponentPtr _VBComponents_Old::Import ( _bstr_t FileName ) {
    struct _VBComponent * _result;
    HRESULT _hr = raw_Import(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _VBComponentPtr(_result, false);
}

inline VBEPtr _VBComponents_Old::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

//
// interface _VBComponents wrapper method implementations
//

inline _VBComponentPtr _VBComponents::AddCustom ( _bstr_t ProgId ) {
    struct _VBComponent * _result;
    HRESULT _hr = raw_AddCustom(ProgId, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _VBComponentPtr(_result, false);
}

inline _VBComponentPtr _VBComponents::AddMTDesigner ( long index ) {
    struct _VBComponent * _result;
    HRESULT _hr = raw_AddMTDesigner(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _VBComponentPtr(_result, false);
}

//
// interface _Component wrapper method implementations
//

inline ApplicationPtr _Component::GetApplication ( ) {
    struct Application * _result;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ApplicationPtr(_result, false);
}

inline _ComponentsPtr _Component::GetParent ( ) {
    struct _Components * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ComponentsPtr(_result, false);
}

inline VARIANT_BOOL _Component::GetIsDirty ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_IsDirty(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Component::PutIsDirty ( VARIANT_BOOL lpfReturn ) {
    HRESULT _hr = put_IsDirty(lpfReturn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Component::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 _Component::PutName ( _bstr_t pbstrReturn ) {
    HRESULT _hr = put_Name(pbstrReturn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface _VBComponent_Old wrapper method implementations
//

inline VARIANT_BOOL _VBComponent_Old::GetSaved ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Saved(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _VBComponent_Old::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 _VBComponent_Old::PutName ( _bstr_t pbstrReturn ) {
    HRESULT _hr = put_Name(pbstrReturn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IDispatchPtr _VBComponent_Old::GetDesigner ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Designer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _CodeModulePtr _VBComponent_Old::GetCodeModule ( ) {
    struct _CodeModule * _result;
    HRESULT _hr = get_CodeModule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _CodeModulePtr(_result, false);
}

inline enum vbext_ComponentType _VBComponent_Old::GetType ( ) {
    enum vbext_ComponentType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _VBComponent_Old::Export ( _bstr_t FileName ) {
    HRESULT _hr = raw_Export(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VBEPtr _VBComponent_Old::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

inline _VBComponentsPtr _VBComponent_Old::GetCollection ( ) {
    struct _VBComponents * _result;
    HRESULT _hr = get_Collection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _VBComponentsPtr(_result, false);
}

inline VARIANT_BOOL _VBComponent_Old::GetHasOpenDesigner ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_HasOpenDesigner(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _PropertiesPtr _VBComponent_Old::GetProperties ( ) {
    struct _Properties * _result;
    HRESULT _hr = get_Properties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _PropertiesPtr(_result, false);
}

inline WindowPtr _VBComponent_Old::DesignerWindow ( ) {
    struct Window * _result;
    HRESULT _hr = raw_DesignerWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline HRESULT _VBComponent_Old::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface _VBComponent wrapper method implementations
//

inline _bstr_t _VBComponent::GetDesignerID ( ) {
    BSTR _result;
    HRESULT _hr = get_DesignerID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface Property wrapper method implementations
//

inline _variant_t Property::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 Property::PutValue ( const _variant_t & lppvReturn ) {
    HRESULT _hr = put_Value(lppvReturn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Property::GetIndexedValue ( const _variant_t & Index1, const _variant_t & Index2, const _variant_t & Index3, const _variant_t & Index4 ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_IndexedValue(Index1, Index2, Index3, Index4, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Property::PutIndexedValue ( const _variant_t & Index1, const _variant_t & Index2, const _variant_t & Index3, const _variant_t & Index4, const _variant_t & lppvReturn ) {
    HRESULT _hr = put_IndexedValue(Index1, Index2, Index3, Index4, lppvReturn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short Property::GetNumIndices ( ) {
    short _result;
    HRESULT _hr = get_NumIndices(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ApplicationPtr Property::GetApplication ( ) {
    struct Application * _result;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ApplicationPtr(_result, false);
}

inline _PropertiesPtr Property::GetParent ( ) {
    struct _Properties * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _PropertiesPtr(_result, false);
}

inline _bstr_t Property::GetName ( ) {
    BSTR _result;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VBEPtr Property::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

inline _PropertiesPtr Property::GetCollection ( ) {
    struct _Properties * _result;
    HRESULT _hr = get_Collection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _PropertiesPtr(_result, false);
}

inline IUnknownPtr Property::GetObject ( ) {
    IUnknown * _result;
    HRESULT _hr = get_Object(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline void Property::PutRefObject ( IUnknown * lppunk ) {
    HRESULT _hr = putref_Object(lppunk);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface _Properties wrapper method implementations
//

inline PropertyPtr _Properties::Item ( const _variant_t & index ) {
    struct Property * _result;
    HRESULT _hr = raw_Item(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PropertyPtr(_result, false);
}

inline ApplicationPtr _Properties::GetApplication ( ) {
    struct Application * _result;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ApplicationPtr(_result, false);
}

inline IDispatchPtr _Properties::GetParent ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long _Properties::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr _Properties::_NewEnum ( ) {
    IUnknown * _result;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline VBEPtr _Properties::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

//
// interface _AddIns wrapper method implementations
//

inline AddInPtr _AddIns::Item ( const _variant_t & index ) {
    struct AddIn * _result;
    HRESULT _hr = raw_Item(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AddInPtr(_result, false);
}

inline VBEPtr _AddIns::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

inline IDispatchPtr _AddIns::GetParent ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long _AddIns::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr _AddIns::_NewEnum ( ) {
    IUnknown * _result;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

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

//
// interface AddIn wrapper method implementations
//

inline _bstr_t AddIn::GetDescription ( ) {
    BSTR _result;
    HRESULT _hr = get_Description(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void AddIn::PutDescription ( _bstr_t lpbstr ) {
    HRESULT _hr = put_Description(lpbstr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VBEPtr AddIn::GetVBE ( ) {
    struct VBE * _result;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBEPtr(_result, false);
}

inline _AddInsPtr AddIn::GetCollection ( ) {
    struct _AddIns * _result;
    HRESULT _hr = get_Collection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _AddInsPtr(_result, false);
}

inline _bstr_t AddIn::GetProgId ( ) {
    BSTR _result;
    HRESULT _hr = get_ProgId(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t AddIn::GetGuid ( ) {
    BSTR _result;
    HRESULT _hr = get_Guid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL AddIn::GetConnect ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Connect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AddIn::PutConnect ( VARIANT_BOOL lpfConnect ) {
    HRESULT _hr = put_Connect(lpfConnect);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IDispatchPtr AddIn::GetObject ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Object(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

⌨️ 快捷键说明

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