simple9.idl

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

IDL
42
字号
// Simple9.idl : IDL source for Simple9.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (Simple9.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(39660E3A-4BD0-4894-A65E-3CF09DA4B626),
		dual,
		helpstring("ISimpleErr Interface"),
		pointer_default(unique)
	]
	interface ISimpleErr : IDispatch
	{
		[id(1), helpstring("method Div1")] HRESULT Div1([in] long n1, [in] long n2, [out, retval] long * pResult);
		[id(2), helpstring("method Div2")] HRESULT Div2([in] long n1, [in] long n2, [out, retval] long * pResult);
		[id(3), helpstring("method Div3")] HRESULT Div3([in] long n1, [in] long n2, [out, retval] long * pResult);
	};

[
	uuid(04CAB502-F193-4384-8214-9C05E3D0482A),
	version(1.0),
	helpstring("Simple9 1.0 Type Library")
]
library SIMPLE9Lib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(F113D12F-F934-497A-BFF1-ED6F2ED5A755),
		helpstring("SimpleErr Class")
	]
	coclass SimpleErr
	{
		[default] interface ISimpleErr;
	};
};

⌨️ 快捷键说明

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