component.idl

来自「可以接入GPS等三个传感器,并且封装在一个组件里.上层只需拷贝几个文件,就可直接」· IDL 代码 · 共 42 行

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

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(ADD045B3-90BE-4348-8714-512A8361EACF),
		dual,
		helpstring("IFirstATL Interface"),
		pointer_default(unique)
	]
	interface IFirstATL : IDispatch
	{
		[id(1), helpstring("method SensorRead")] HRESULT SensorRead([out]float SensorPos[3],[out]float SensorOrient[3],[out,retval]BOOL *result);
		[id(2), helpstring("method Initial")] HRESULT Initial([out,retval]BOOL *result);
		[id(3), helpstring("method Close")] HRESULT Close([out,retval]BOOL *result);
	};

[
	uuid(6A0BA5C5-9ECD-4F01-9779-3BC60C52BC79),
	version(1.0),
	helpstring("Component 1.0 Type Library")
]
library COMPONENTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(FFD438AC-A113-4DEB-A9E0-6CCD012379D3),
		helpstring("FirstATL Class")
	]
	coclass FirstATL
	{
		[default] interface IFirstATL;
	};
};

⌨️ 快捷键说明

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