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

📄 pbasic.tli

📁 GemoMedia 应用 演示了其使用方法
💻 TLI
📖 第 1 页 / 共 3 页
字号:

inline long IGMError::GetResourceID ( ) {
    long _result;
    HRESULT _hr = get_ResourceID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IGMError::PutResourceID ( long plResourceID ) {
    HRESULT _hr = put_ResourceID(plResourceID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IGMError::GetHelpID ( ) {
    long _result;
    HRESULT _hr = get_HelpID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IGMError::PutHelpID ( long plHelpID ) {
    HRESULT _hr = put_HelpID(plHelpID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IGMError::GetHelpFile ( ) {
    BSTR _result;
    HRESULT _hr = get_HelpFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IGMError::PutHelpFile ( _bstr_t pbstrHelpFile ) {
    HRESULT _hr = put_HelpFile(pbstrHelpFile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IGMError::GetErrorString ( ) {
    BSTR _result;
    HRESULT _hr = get_ErrorString(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IGMError::PutErrorString ( _bstr_t pbstrErrorString ) {
    HRESULT _hr = put_ErrorString(pbstrErrorString);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IGMError::GetErrorParameters ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ErrorParameters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IGMError::PutErrorParameters ( VARIANT * psaErrorParams ) {
    HRESULT _hr = put_ErrorParameters(psaErrorParams);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IDispatchPtr IGMError::GetDatabase ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Database(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline void IGMError::PutRefDatabase ( IDispatch * lplpDatabase ) {
    HRESULT _hr = putref_Database(lplpDatabase);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IGMError::GetSourceResourceID ( ) {
    long _result;
    HRESULT _hr = get_SourceResourceID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IGMError::PutSourceResourceID ( long plSourceResourceID ) {
    HRESULT _hr = put_SourceResourceID(plSourceResourceID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IGMError::GetSourceGUID ( ) {
    BSTR _result;
    HRESULT _hr = get_SourceGUID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IGMError::PutSourceGUID ( _bstr_t pbstrSourceGUID ) {
    HRESULT _hr = put_SourceGUID(pbstrSourceGUID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline int IGMError::Display ( const _variant_t & Title, long DlgButtons ) {
    int _result;
    HRESULT _hr = raw_Display(Title, DlgButtons, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline int IGMError::DisplayAll ( const _variant_t & Title, long DlgButtons ) {
    int _result;
    HRESULT _hr = raw_DisplayAll(Title, DlgButtons, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IGMError::RaiseException ( ) {
    HRESULT _hr = raw_RaiseException();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IDispatchPtr IGMError::GetErrors ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Errors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline void IGMError::PutRefErrors ( IDispatch * lplpErrors ) {
    HRESULT _hr = putref_Errors(lplpErrors);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IGMError::GetOwnerHWnd ( ) {
    long _result;
    HRESULT _hr = get_OwnerHWnd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IGMError::PutOwnerHWnd ( long pOwnerHWnd ) {
    HRESULT _hr = put_OwnerHWnd(pOwnerHWnd);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IGMLicenseError wrapper method implementations
//

inline HRESULT IGMLicenseError::Display ( _bstr_t Title, _bstr_t Message, _bstr_t SystemID ) {
    HRESULT _hr = raw_Display(Title, Message, SystemID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface _DGMEventServer wrapper method implementations
//

inline long _DGMEventServer::Get_HesitationTime ( ) {
    long _result;
    HRESULT _hr = get__HesitationTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _DGMEventServer::Put_HesitationTime ( long Time ) {
    HRESULT _hr = put__HesitationTime(Time);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _DGMEventServer::_Initialize ( IDispatch * pEventControlDispatch ) {
    HRESULT _hr = raw__Initialize(pEventControlDispatch);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _DGMEventServer::_Connect ( IDispatch * pMapViewDispatch ) {
    HRESULT _hr = raw__Connect(pMapViewDispatch);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _DGMEventServer::_Disconnect ( IDispatch * pMapViewDispatch, long * IsEmpty ) {
    HRESULT _hr = raw__Disconnect(pMapViewDispatch, IsEmpty);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _DGMEventServer::_Terminate ( ) {
    HRESULT _hr = raw__Terminate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IGMSmartLocateServer wrapper method implementations
//

inline void IGMSmartLocateServer::PutPixelTolerance ( long Tolerance ) {
    HRESULT _hr = put_PixelTolerance(Tolerance);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IGMSmartLocateServer::GetPixelTolerance ( ) {
    long _result;
    HRESULT _hr = get_PixelTolerance(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IGMSmartLocateServer::PutFenceMode ( long FenceMode ) {
    HRESULT _hr = put_FenceMode(FenceMode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IGMSmartLocateServer::GetFenceMode ( ) {
    long _result;
    HRESULT _hr = get_FenceMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IGMSmartLocateServer::Locate ( IDispatch * GeometryObject, struct _DMapview * ViewID, IDispatch * pObject ) {
    HRESULT _hr = raw_Locate(GeometryObject, ViewID, pObject);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface DGMSmartLocateServer wrapper method implementations
//

inline void DGMSmartLocateServer::PutPixelTolerance ( long _arg1 ) {
    _com_dispatch_method(this, 0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, 
        L"\x0003", _arg1);
}

inline long DGMSmartLocateServer::GetPixelTolerance ( ) {
    long _result;
    _com_dispatch_method(this, 0x0, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
    return _result;
}

inline void DGMSmartLocateServer::PutFenceMode ( long _arg1 ) {
    _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, 
        L"\x0003", _arg1);
}

inline long DGMSmartLocateServer::GetFenceMode ( ) {
    long _result;
    _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
    return _result;
}

inline HRESULT DGMSmartLocateServer::Locate ( IDispatch * GeometryObject, struct _DMapview * ViewID, IDispatch * pObject ) {
    return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009\x0009", GeometryObject, ViewID, pObject);
}

//
// interface DGMFormatValidate wrapper method implementations
//

inline _bstr_t DGMFormatValidate::FormatBoolean ( const _variant_t & vInputBoolean, _bstr_t bstrFormat ) {
    BSTR _result;
    HRESULT _hr = raw_FormatBoolean(vInputBoolean, bstrFormat, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::FormatCharacter ( _bstr_t bstrInputString ) {
    BSTR _result;
    HRESULT _hr = raw_FormatCharacter(bstrInputString, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::FormatCurrency ( const _variant_t & vInputCurrency, _bstr_t bstrFormat, long lPrecision ) {
    BSTR _result;
    HRESULT _hr = raw_FormatCurrency(vInputCurrency, bstrFormat, lPrecision, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::FormatDate ( const _variant_t & vInputDateTime, _bstr_t bstrFormat ) {
    BSTR _result;
    HRESULT _hr = raw_FormatDate(vInputDateTime, bstrFormat, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::FormatNumber ( const _variant_t & vInputNumber, _bstr_t szFormat, long lPrecision ) {
    BSTR _result;
    HRESULT _hr = raw_FormatNumber(vInputNumber, szFormat, lPrecision, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::FormatWindowName ( _bstr_t bstrInputString ) {
    BSTR _result;
    HRESULT _hr = raw_FormatWindowName(bstrInputString, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::ValidateCharacter ( _bstr_t bstrInputString ) {
    BSTR _result;
    HRESULT _hr = raw_ValidateCharacter(bstrInputString, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t DGMFormatValidate::ValidateGDOName ( _bstr_t bstrInputString ) {
    BSTR _result;
    HRESULT _hr = raw_ValidateGDOName(bstrInputString, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

⌨️ 快捷键说明

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