📄 sam_2.idl
字号:
#include <olectl.h>// sam_2.idl : IDL source for sam_2.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (sam_2.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(539E78EE-D726-11D3-9B30-52544C393A8C),
dual,
helpstring("IATLSam Interface"),
pointer_default(unique)
]
interface IATLSam : IDispatch
{
[id(1), helpstring("设置显示字符号")] HRESULT SetCaption([in]BSTR pszCaption);
[id(2), helpstring("得到文字长度")] HRESULT GetCaptionLength([out]long* lLen);
};
[
uuid(539E78E1-D726-11D3-9B30-52544C393A8C),
version(1.0),
helpstring("sam_2 1.0 Type Library")
]
library SAM_2Lib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(539E78EF-D726-11D3-9B30-52544C393A8C),
helpstring("ATLSam Class")
]
coclass ATLSam
{
[default] interface IATLSam;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -