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

📄 pclient.tli

📁 GemoMedia 应用 演示了其使用方法
💻 TLI
📖 第 1 页 / 共 5 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (b8a3eba1).
//
// PClient.tli
//
// Wrapper implementations for Win32 type library D:\\program files\\GeoMedia Professional\\Program\\PClient.tlb
// compiler-generated file created 12/05/06 at 15:52:35 - DO NOT EDIT!


//
// interface ExtendedPropertySet wrapper method implementations
//

#pragma implementation_key(1)
inline _variant_t ExtendedPropertySet::GetValue ( _bstr_t PropertyName ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_GetValue(PropertyName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2)
inline long ExtendedPropertySet::SetValue ( _bstr_t PropertyName, const _variant_t & Value ) {
    long _result;
    HRESULT _hr = raw_SetValue(PropertyName, Value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface DGDOServerRegEntry wrapper method implementations
//

#pragma implementation_key(3)
inline _bstr_t DGDOServerRegEntry::GetDatabaseClass ( ) {
    BSTR _result;
    HRESULT _hr = get_DatabaseClass(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(4)
inline _bstr_t DGDOServerRegEntry::GetDefaultExtension ( ) {
    BSTR _result;
    HRESULT _hr = get_DefaultExtension(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(5)
inline _bstr_t DGDOServerRegEntry::GetLongName ( ) {
    BSTR _result;
    HRESULT _hr = get_LongName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(6)
inline _bstr_t DGDOServerRegEntry::GetNameDescription ( ) {
    BSTR _result;
    HRESULT _hr = get_NameDescription(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(7)
inline VARIANT_BOOL DGDOServerRegEntry::GetNameIsDirectory ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_NameIsDirectory(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(8)
inline VARIANT_BOOL DGDOServerRegEntry::GetNameIsFile ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_NameIsFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(9)
inline VARIANT_BOOL DGDOServerRegEntry::GetReadWrite ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_ReadWrite(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(10)
inline _bstr_t DGDOServerRegEntry::GetShortName ( ) {
    BSTR _result;
    HRESULT _hr = get_ShortName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(11)
inline _bstr_t DGDOServerRegEntry::GetSourceStringDescription ( ) {
    BSTR _result;
    HRESULT _hr = get_SourceStringDescription(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(12)
inline VARIANT_BOOL DGDOServerRegEntry::GetSourceStringUsed ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_SourceStringUsed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(13)
inline _bstr_t DGDOServerRegEntry::GetVersion ( ) {
    BSTR _result;
    HRESULT _hr = get_Version(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(14)
inline HRESULT DGDOServerRegEntry::GetNativeControlsNamedValue ( _bstr_t Name, BSTR * Value ) {
    HRESULT _hr = raw_GetNativeControlsNamedValue(Name, Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface DGDOServerRegEntries wrapper method implementations
//

#pragma implementation_key(15)
inline short DGDOServerRegEntries::GetCount ( ) {
    short _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(16)
inline DGDOServerRegEntryPtr DGDOServerRegEntries::Item ( const _variant_t & Index ) {
    struct DGDOServerRegEntry * _result;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DGDOServerRegEntryPtr(_result, false);
}

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

//
// interface DGMConnection wrapper method implementations
//

#pragma implementation_key(18)
inline _bstr_t DGMConnection::GetConnectionName ( ) {
    BSTR _result;
    HRESULT _hr = get_ConnectionName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(19)
inline void DGMConnection::PutConnectionName ( _bstr_t ConnectionName ) {
    HRESULT _hr = put_ConnectionName(ConnectionName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

#pragma implementation_key(21)
inline void DGMConnection::PutDescription ( _bstr_t Description ) {
    HRESULT _hr = put_Description(Description);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(22)
inline _bstr_t DGMConnection::GetType ( ) {
    BSTR _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(23)
inline void DGMConnection::PutType ( _bstr_t Type ) {
    HRESULT _hr = put_Type(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(24)
inline _bstr_t DGMConnection::GetLocation ( ) {
    BSTR _result;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(25)
inline void DGMConnection::PutLocation ( _bstr_t Location ) {
    HRESULT _hr = put_Location(Location);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(26)
inline _bstr_t DGMConnection::GetConnectInfo ( ) {
    BSTR _result;
    HRESULT _hr = get_ConnectInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(27)
inline void DGMConnection::PutConnectInfo ( _bstr_t ConnectInfo ) {
    HRESULT _hr = put_ConnectInfo(ConnectInfo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(28)
inline long DGMConnection::GetStatus ( ) {
    long _result;
    HRESULT _hr = get_Status(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(29)
inline long DGMConnection::GetMode ( ) {
    long _result;
    HRESULT _hr = get_Mode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(30)
inline void DGMConnection::PutMode ( long Mode ) {
    HRESULT _hr = put_Mode(Mode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

#pragma implementation_key(32)
inline void DGMConnection::PutParent ( IDispatch * Parent ) {
    HRESULT _hr = put_Parent(Parent);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(33)
inline IDispatchPtr DGMConnection::GetApplication ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(34)
inline void DGMConnection::PutApplication ( IDispatch * Application ) {
    HRESULT _hr = put_Application(Application);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(35)
inline DGMSpatialFilterPtr DGMConnection::GetSpatialFilter ( ) {
    struct DGMSpatialFilter * _result;
    HRESULT _hr = get_SpatialFilter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DGMSpatialFilterPtr(_result, false);
}

#pragma implementation_key(36)
inline void DGMConnection::PutRefSpatialFilter ( struct DGMSpatialFilter * SpatialFilter ) {
    HRESULT _hr = putref_SpatialFilter(SpatialFilter);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

#pragma implementation_key(38)
inline VARIANT_BOOL DGMConnection::GetUpdatable ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Updatable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(39)
inline VARIANT_BOOL DGMConnection::GetSchemaUpdatable ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_SchemaUpdatable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(40)
inline VARIANT_BOOL DGMConnection::GetTransactions ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Transactions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(41)
inline _bstr_t DGMConnection::GetVersion ( ) {
    BSTR _result;
    HRESULT _hr = get_Version(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(42)
inline long DGMConnection::GetCollatingOrder ( ) {
    long _result;
    HRESULT _hr = get_CollatingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(43)
inline HRESULT DGMConnection::Connect ( ) {
    HRESULT _hr = raw_Connect();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(44)
inline HRESULT DGMConnection::Disconnect ( ) {
    HRESULT _hr = raw_Disconnect();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(45)
inline HRESULT DGMConnection::BroadcastDatabaseChanges ( const _variant_t & bLocalOnly ) {
    HRESULT _hr = raw_BroadcastDatabaseChanges(bLocalOnly);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(46)
inline HRESULT DGMConnection::CreateOriginatingPipe ( struct OriginatingPipe * * OriginatingPipe ) {
    HRESULT _hr = raw_CreateOriginatingPipe(OriginatingPipe);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(47)
inline HRESULT DGMConnection::PostLoadInit ( ) {
    HRESULT _hr = raw_PostLoadInit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(48)
inline HRESULT DGMConnection::ReloadDatabase ( ) {
    HRESULT _hr = raw_ReloadDatabase();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(49)
inline long DGMConnection::GetOriginatingPipeCount ( ) {

⌨️ 快捷键说明

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