dotnetcomponent.tli
来自「C#高级编程第6版随书源代码 值得下载」· TLI 代码 · 共 46 行
TLI
46 行
// Created by Microsoft (R) C/C++ Compiler Version 15.00.20706.01 (c6d752c6).
//
// k:\proc#\interop\dotnetcomponent\comclient\debug\dotnetcomponent.tli
//
// Wrapper implementations for Win32 type library ../DotNetComponent/bin/debug/DotnetComponent.tlb
// compiler-generated file created 09/03/07 at 13:19:55 - DO NOT EDIT!
#pragma once
//
// dispinterface IMathEvents wrapper method implementations
//
inline HRESULT IMathEvents::CalculationCompleted ( ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
//
// interface IWelcome wrapper method implementations
//
inline _bstr_t IWelcome::Greeting ( _bstr_t name ) {
BSTR _result = 0;
HRESULT _hr = raw_Greeting(name, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface IMath wrapper method implementations
//
inline long IMath::Add ( long val1, long val2 ) {
long _result = 0;
HRESULT _hr = raw_Add(val1, val2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IMath::Sub ( long val1, long val2 ) {
long _result = 0;
HRESULT _hr = raw_Sub(val1, val2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?