doublependulum.idl

来自「主要介绍vc++6.0的编程过程」· IDL 代码 · 共 44 行

IDL
44
字号
// DoublePendulum.idl : IDL source for DoublePendulum.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
	

	[
		object,
		uuid(80A71B2C-E5ED-11D1-B719-0080AD17AF01),
		dual,
		helpstring("IDoublePend Interface"),
		pointer_default(unique)
	]
	interface IDoublePend : IDispatch
	{
		[id(1), helpstring("method SetValue")] HRESULT SetValue(double dValue);
		[id(2), helpstring("method Update")] HRESULT Update();
	};

[
	uuid(80A71B20-E5ED-11D1-B719-0080AD17AF01),
	version(1.0),
	helpstring("DoublePendulum 1.0 Type Library")
]
library DOUBLEPENDULUMLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(D6AA8FAD-E29D-11D1-B719-0080AD17AF01),
		helpstring("DoublePend Class")
	]
	coclass DoublePend
	{
		[default] interface IDoublePend;
	};
};

⌨️ 快捷键说明

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