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

📄 questioninfo.tli

📁 本文件是一个用vc编程的在线考试系统的源代码
💻 TLI
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (118cd61e).
//
// f:\《visual c++项目案例导航》源代码\第3部分源码\组件\exam\debugu\QuestionInfo.tli
//
// Wrapper implementations for Win32 type library QuestionInfo.tlb
// compiler-generated file created 07/04/02 at 10:16:46 - DO NOT EDIT!

#pragma once

//
// interface IQuestion wrapper method implementations
//

inline _bstr_t IQuestion::Getcontent ( ) {
    BSTR _result;
    HRESULT _hr = get_content(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::Putcontent ( _bstr_t pVal ) {
    HRESULT _hr = put_content(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQ1 ( ) {
    BSTR _result;
    HRESULT _hr = get_Q1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::PutQ1 ( _bstr_t pVal ) {
    HRESULT _hr = put_Q1(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQ2 ( ) {
    BSTR _result;
    HRESULT _hr = get_Q2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::PutQ2 ( _bstr_t pVal ) {
    HRESULT _hr = put_Q2(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQ3 ( ) {
    BSTR _result;
    HRESULT _hr = get_Q3(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::PutQ3 ( _bstr_t pVal ) {
    HRESULT _hr = put_Q3(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQ4 ( ) {
    BSTR _result;
    HRESULT _hr = get_Q4(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::PutQ4 ( _bstr_t pVal ) {
    HRESULT _hr = put_Q4(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQ5 ( ) {
    BSTR _result;
    HRESULT _hr = get_Q5(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IQuestion::PutQ5 ( _bstr_t pVal ) {
    HRESULT _hr = put_Q5(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IQuestion::GetQuestion ( int x_nType, int x_nQID ) {
    BSTR _result;
    HRESULT _hr = raw_GetQuestion(x_nType, x_nQID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline int IQuestion::PutQuestion ( int x_nType ) {
    int _result;
    HRESULT _hr = raw_PutQuestion(x_nType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline int IQuestion::DeleteQuestion ( int x_nType, int x_nQID ) {
    int _result;
    HRESULT _hr = raw_DeleteQuestion(x_nType, x_nQID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline short IQuestion::GetAnswer ( ) {
    short _result;
    HRESULT _hr = get_Answer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IQuestion::PutAnswer ( short pVal ) {
    HRESULT _hr = put_Answer(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

⌨️ 快捷键说明

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