📄 com_ex.idl
字号:
// com_ex.idl : IDL source for com_ex.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (com_ex.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(41E4A5DE-0C63-4291-8042-618761BAF407),
dual,
helpstring("Icontour Interface"),
pointer_default(unique)
]
interface Icontour : IDispatch
{
[propget, id(1), helpstring("property startZ")] HRESULT startZ([out, retval] double *pVal);
[propput, id(1), helpstring("property startZ")] HRESULT startZ([in] double newVal);
[propget, id(2), helpstring("property incZ")] HRESULT incZ([out, retval] double *pVal);
[propput, id(2), helpstring("property incZ")] HRESULT incZ([in] double newVal);
[propget, id(3), helpstring("property endZ")] HRESULT endZ([out, retval] double *pVal);
[propput, id(3), helpstring("property endZ")] HRESULT endZ([in] double newVal);
[id(4), helpstring("method GetContourCount")] HRESULT GetContourCount([out, retval] long * nCount);
[id(5), helpstring("method GetContourValueOf")] HRESULT GetContourValueOf([in] long nContourIndex, [out,retval] double *Z);
[id(6), helpstring("method GetPointsCountOf")] HRESULT GetPointsCountOf([in] long nContourIndex,[in] long nSegIndex,[out,retval] long * nPointsCount);
[id(7), helpstring("method GetPointsOf")] HRESULT GetPointsOf([in] long nContourIndex, [in] long nSegIndex, [out,ref] double * pPointsX, [out,ref] double * pPointsY);
[id(8), helpstring("method GetSegCountOf")] HRESULT GetSegCountOf([in] long nContourIndex, [out,retval] long * nSegCount);
[id(9), helpstring("method InitialContour")] HRESULT InitialContour([in] LPCSTR filename);
};
[
uuid(F9C7F330-512C-4B87-9301-3491B408E04B),
version(1.0),
helpstring("com_ex 1.0 Type Library")
]
library COM_EXLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(0DBD3FE4-2CD7-456A-830E-1E532D8F5FEC),
helpstring("contour Class")
]
coclass contour
{
[default] interface Icontour;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -