📄 exam.idl
字号:
// EXAM.idl : IDL source for EXAM.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (EXAM.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(0F21423C-1338-4C27-973F-05B204B6F3D0),
dual,
helpstring("ICaculateScore Interface"),
pointer_default(unique)
]
interface ICaculateScore : IDispatch
{
[propget, id(1), helpstring("property Score")] HRESULT Score([out, retval] long *pVal);
[propput, id(1), helpstring("property Score")] HRESULT Score([in] long newVal);
[id(2), helpstring("method CaculateScore")] HRESULT CaculateScore([in] int x_nSID,[out,retval] BSTR *x_Success);
[id(3), helpstring("method GetScore")] HRESULT GetScore([in] int x_nSID,[out,retval] int *x_nScore);
};
[
object,
uuid(2FD534D2-E3DF-4FFD-9578-C23626B34D59),
dual,
helpstring("IGenerateExam Interface"),
pointer_default(unique)
]
interface IGenerateExam : IDispatch
{
[id(1), helpstring("method GenerateExam")] HRESULT GenerateExam([in] int x_nSID,[out, retval] BSTR *x_Success);
};
[
object,
uuid(DFC80869-90AB-4053-BAA7-65AFE216CC83),
dual,
helpstring("ISaveCurrentAnswer Interface"),
pointer_default(unique)
]
interface ISaveCurrentAnswer : IDispatch
{
[id(1), helpstring("method SaveAnswer")] HRESULT SaveAnswer([in] int x_nSID,[in] int x_nQID,[in] int x_nAnswer,[in] int x_nTimeLeft, [in] int x_nForward,[out,retval] BSTR *x_Success);
};
[
object,
uuid(03619FC2-96E0-466D-A2CD-A35C9C59BB80),
dual,
helpstring("IExamState Interface"),
pointer_default(unique)
]
interface IExamState : IDispatch
{
[id(1), helpstring("method CheckExist")] HRESULT CheckExist([in] int x_nSID,[out,retval] BSTR *x_Success);
[id(2), helpstring("method CheckFinish")] HRESULT CheckFinish([in] int x_nSID,[out,retval] BSTR * x_Success);
[id(3), helpstring("method GetAnswer")] HRESULT GetAnswer([in] int x_nSID,[in] int x_nQID,[out,retval] long *x_lAnswer);
[id(4), helpstring("method GetCurrentQuestion")] HRESULT GetCurrentQuestion([in] int x_nSID,[out,retval] long *x_lCurrentQuestion);
[propget, id(5), helpstring("property QType")] HRESULT QType([out, retval] short *pVal);
[propget, id(6), helpstring("property TimeLeft")] HRESULT TimeLeft([out, retval] long *pVal);
[propget, id(7), helpstring("property QTypeforbstr")] HRESULT QTypeforbstr([out, retval] BSTR* *pVal);
[propput, id(7), helpstring("property QTypeforbstr")] HRESULT QTypeforbstr([in] BSTR* newVal);
[id(8), helpstring("method GetExamInfo")] HRESULT GetExamInfo([in] long x_nSID,[out,retval] BSTR *x_Success);
[id(9), helpstring("method GetExamDetail")] HRESULT GetExamDetail([in] long x_nSID,[in] int x_nQNO,[out,retval] BSTR * x_Success);
[propget, id(10), helpstring("property QID")] HRESULT QID([out, retval] long *pVal);
};
[
uuid(8BE01B20-BFF6-48B2-BFAC-D9132F9E92B6),
version(1.0),
helpstring("EXAM 1.0 Type Library")
]
library EXAMLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(1B9BE4C5-74A9-4BA8-8035-2EF72E2DDC32),
helpstring("CaculateScore Class")
]
coclass CaculateScore
{
[default] interface ICaculateScore;
};
[
uuid(F0DB826B-A7E4-4987-8F28-24BDE59CF8C3),
helpstring("GenerateExam Class")
]
coclass GenerateExam
{
[default] interface IGenerateExam;
};
[
uuid(9EFE7F5C-5B80-4B16-9188-16D3C7B768C5),
helpstring("SaveCurrentAnswer Class")
]
coclass SaveCurrentAnswer
{
[default] interface ISaveCurrentAnswer;
};
[
uuid(15F86C3A-EDC1-4E13-A009-DD442B0F965E),
helpstring("ExamState Class")
]
coclass ExamState
{
[default] interface IExamState;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -