📄 questioninfo.idl
字号:
// QuestionInfo.idl : IDL source for QuestionInfo.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (QuestionInfo.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(362ABD33-561C-4541-9E21-300573AB2163),
dual,
helpstring("IQuestion Interface"),
pointer_default(unique)
]
interface IQuestion : IDispatch
{
[propget, id(1), helpstring("property content")] HRESULT content([out, retval] BSTR *pVal);
[propput, id(1), helpstring("property content")] HRESULT content([in] BSTR newVal);
[propget, id(2), helpstring("property Q1")] HRESULT Q1([out, retval] BSTR *pVal);
[propput, id(2), helpstring("property Q1")] HRESULT Q1([in] BSTR newVal);
[propget, id(3), helpstring("property Q2")] HRESULT Q2([out, retval] BSTR *pVal);
[propput, id(3), helpstring("property Q2")] HRESULT Q2([in] BSTR newVal);
[propget, id(4), helpstring("property Q3")] HRESULT Q3([out, retval] BSTR *pVal);
[propput, id(4), helpstring("property Q3")] HRESULT Q3([in] BSTR newVal);
[propget, id(5), helpstring("property Q4")] HRESULT Q4([out, retval] BSTR *pVal);
[propput, id(5), helpstring("property Q4")] HRESULT Q4([in] BSTR newVal);
[propget, id(6), helpstring("property Q5")] HRESULT Q5([out, retval] BSTR *pVal);
[propput, id(6), helpstring("property Q5")] HRESULT Q5([in] BSTR newVal);
[id(7), helpstring("method GetQuestion")] HRESULT GetQuestion([in] int x_nType,[in] int x_nQID,[out,retval] BSTR *x_QInfo);
[id(8), helpstring("method PutQuestion")] HRESULT PutQuestion([in] int x_nType,[out,retval] int *x_QID);
[id(9), helpstring("method DeleteQuestion")] HRESULT DeleteQuestion([in] int x_nType,[in] int x_nQID,[out,retval] int *x_Success);
[propget, id(10), helpstring("property Answer")] HRESULT Answer([out, retval] short *pVal);
[propput, id(10), helpstring("property Answer")] HRESULT Answer([in] short newVal);
};
[
uuid(4C4867FA-F331-400D-9A4E-F86157229863),
version(1.0),
helpstring("QuestionInfo 1.0 Type Library")
]
library QUESTIONINFOLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(7672935A-B914-466A-BB82-9EC892636123),
helpstring("Question Class")
]
coclass Question
{
[default] interface IQuestion;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -