simple1.tli

来自「Thinkinc++English 电子书籍,英文版」· TLI 代码 · 共 27 行

TLI
27
字号
// Created by Microsoft (R) C/C++ Compiler Version 12.00.9782.0 (0c49bd0d).
//
// Simple1.tli
//
// Wrapper implementations for Win32 type library ..\Simple1\Simple1.tlb
// compiler-generated file created 07/07/05 at 20:29:50 - DO NOT EDIT!

#pragma once

//
// interface IFun wrapper method implementations
//

inline long IFun::Add ( long n1, long n2 ) {
    long _result;
    HRESULT _hr = raw_Add(n1, n2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IFun::Cat ( _bstr_t s1, _bstr_t s2 ) {
    BSTR _result;
    HRESULT _hr = raw_Cat(s1, s2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

⌨️ 快捷键说明

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