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

📄 component.idl

📁 可以接入GPS等三个传感器,并且封装在一个组件里.上层只需拷贝几个文件,就可直接调用,组件的更新不影响上层使用
💻 IDL
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -