firstatl.idl
来自「几个关于网络编程的程序」· IDL 代码 · 共 41 行
IDL
41 行
// FirstATL.idl : IDL source for FirstATL.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (FirstATL.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(71FCBFF2-B140-42BB-8F32-27DCF40D6FF4),
dual,
helpstring("IMyclass Interface"),
pointer_default(unique)
]
interface IMyclass : IDispatch
{
[id(1), helpstring("method SayHello")] HRESULT SayHello();
[id(2), helpstring("method SayGoodbye")] HRESULT SayGoodbye();
};
[
uuid(00169723-36BD-4972-AB4D-DE7FB616B4C7),
version(1.0),
helpstring("FirstATL 1.0 Type Library")
]
library FIRSTATLLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(DFB658CE-CDEE-4ED7-BBBA-9F262E6B6F0F),
helpstring("Myclass Class")
]
coclass Myclass
{
[default] interface IMyclass;
};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?