📄 component.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 + -