server1.idl

来自「运行时需要更改文件地址」· IDL 代码 · 共 42 行

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

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(EE28D02E-437F-11D9-978E-0000B4C48330),
		dual,
		helpstring("Izhujian1 Interface"),
		pointer_default(unique)
	]
	interface Izhujian1 : IDispatch
	{
		[propget, id(1), helpstring("property total")] HRESULT total([out, retval] long *pVal);
		[propput, id(1), helpstring("property total")] HRESULT total([in] long newVal);
		[id(2), helpstring("method sum1")] HRESULT sum1(long x,long y,long z);
	};

[
	uuid(EE28D022-437F-11D9-978E-0000B4C48330),
	version(1.0),
	helpstring("server1 1.0 Type Library")
]
library SERVER1Lib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(EE28D02F-437F-11D9-978E-0000B4C48330),
		helpstring("zhujian1 Class")
	]
	coclass zhujian1
	{
		[default] interface Izhujian1;
	};
};

⌨️ 快捷键说明

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