⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server1.idl

📁 运行时需要更改文件地址
💻 IDL
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -