📄 adoxce31.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (ce55bd70).
//
// adoxce31.tli
//
// Wrapper implementations for Win32 type library ..\testSDK\adoxce31.tlb
// compiler-generated file created 08/28/02 at 15:52:15 - DO NOT EDIT!
#pragma once
//
// interface _ADOXCECollection wrapper method implementations
//
inline long _ADOXCECollection::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _ADOXCECollection::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _ADOXCECollection::Refresh ( ) {
HRESULT _hr = raw_Refresh();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline void _ADOXCECollection::GetElement ( VARIANT * pvar, int index ) {
HRESULT _hr = get_Element(pvar, index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface _DynaCollection wrapper method implementations
//
inline HRESULT _DynaCollection::Append ( IDispatch * Object ) {
HRESULT _hr = raw_Append(Object);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DynaCollection::Delete ( const _variant_t & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Catalog wrapper method implementations
//
inline TablesPtr _Catalog::GetTables ( ) {
struct Tables * _result;
HRESULT _hr = get_Tables(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return TablesPtr(_result, false);
}
inline _variant_t _Catalog::GetActiveConnection ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_ActiveConnection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Catalog::PutActiveConnection ( const _variant_t & pVal ) {
HRESULT _hr = put_ActiveConnection(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Catalog::PutRefActiveConnection ( IDispatch * pVal ) {
HRESULT _hr = putref_ActiveConnection(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Catalog::Create ( _bstr_t ConnectString ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_Create(ConnectString, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
//
// interface Tables wrapper method implementations
//
inline _TablePtr Tables::GetItem ( const _variant_t & Item ) {
struct _Table * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _TablePtr(_result, false);
}
inline HRESULT Tables::Append ( const _variant_t & Item ) {
HRESULT _hr = raw_Append(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Tables::Delete ( const _variant_t & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Table wrapper method implementations
//
inline ColumnsPtr _Table::GetColumns ( ) {
struct Columns * _result;
HRESULT _hr = get_Columns(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ColumnsPtr(_result, false);
}
inline _bstr_t _Table::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 _Table::PutName ( _bstr_t pVal ) {
HRESULT _hr = put_Name(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Table::GetType ( ) {
BSTR _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline IndexesPtr _Table::GetIndexes ( ) {
struct Indexes * _result;
HRESULT _hr = get_Indexes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IndexesPtr(_result, false);
}
inline KeysPtr _Table::GetKeys ( ) {
struct Keys * _result;
HRESULT _hr = get_Keys(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return KeysPtr(_result, false);
}
inline ADOXCEPropertiesPtr _Table::GetProperties ( ) {
struct ADOXCEProperties * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ADOXCEPropertiesPtr(_result, false);
}
inline _variant_t _Table::GetDateCreated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateCreated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t _Table::GetDateModified ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateModified(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _CatalogPtr _Table::GetParentCatalog ( ) {
struct _Catalog * _result;
HRESULT _hr = get_ParentCatalog(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _CatalogPtr(_result, false);
}
inline void _Table::PutParentCatalog ( struct _Catalog * ppvObject ) {
HRESULT _hr = put_ParentCatalog(ppvObject);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Table::PutRefParentCatalog ( struct _Catalog * ppvObject ) {
HRESULT _hr = putref_ParentCatalog(ppvObject);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Columns wrapper method implementations
//
inline _ColumnPtr Columns::GetItem ( const _variant_t & Item ) {
struct _Column * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ColumnPtr(_result, false);
}
inline HRESULT Columns::Append ( const _variant_t & Item, enum DataTypeEnum Type, long DefinedSize ) {
HRESULT _hr = raw_Append(Item, Type, DefinedSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Columns::Delete ( const _variant_t & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Column wrapper method implementations
//
inline _bstr_t _Column::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 _Column::PutName ( _bstr_t pVal ) {
HRESULT _hr = put_Name(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ColumnAttributesEnum _Column::GetAttributes ( ) {
enum ColumnAttributesEnum _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutAttributes ( enum ColumnAttributesEnum pVal ) {
HRESULT _hr = put_Attributes(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Column::GetDefinedSize ( ) {
long _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutDefinedSize ( long pVal ) {
HRESULT _hr = put_DefinedSize(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Column::GetNumericScale ( ) {
unsigned char _result;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutNumericScale ( unsigned char pVal ) {
HRESULT _hr = put_NumericScale(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Column::GetPrecision ( ) {
long _result;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutPrecision ( long pVal ) {
HRESULT _hr = put_Precision(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Column::GetRelatedColumn ( ) {
BSTR _result;
HRESULT _hr = get_RelatedColumn(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Column::PutRelatedColumn ( _bstr_t pVal ) {
HRESULT _hr = put_RelatedColumn(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -