📄 simplecom.idl
字号:
// SimpleCom.idl : IDL source for SimpleCom.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (SimpleCom.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(EE090D43-32F5-4648-BC3B-28CADC696AED),
helpstring("IMath Interface"),
pointer_default(unique)
]
interface IMath : IUnknown
{
[helpstring("method Add")] HRESULT Add([in] long n1,[in] long n2, [out,retval] long * pnval);
};
//增加接口代码
[
object,
uuid(36A75A3F-94DE-47fe-AF51-0C0C65316A03),
helpstring("IStr Interface"),
pointer default(unique),
]
interface IStr:IUnknown
{
// 目前没有任何接口函数
};
//增加接口代码结束
[
uuid(BBE5A7DF-E198-4817-9C2D-709D56F7347B),
version(1.0),
helpstring("SimpleCom 1.0 Type Library")
]
library SIMPLECOMLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(52DFE35C-1ED0-418B-8D15-A4819DE80D35),
helpstring("Math Class")
]
coclass Math
{
[default] interface IMath;
interface IStr; //在接口列表中添加新接口
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -