chapter9_enumserver.idl

来自「这是ATL电子书的随书代码」· IDL 代码 · 共 39 行

IDL
39
字号
// Chapter9_EnumServer.idl : IDL source for Chapter9_EnumServer.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (Chapter9_EnumServer.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(DBD4D8EF-DCD4-11D3-83C0-0060081AEB5F),
		helpstring("IBasicEnum Interface"),
		pointer_default(unique)
	]
	interface IBasicEnum : IUnknown
	{
		[id(1), helpstring("method get_Enum")] HRESULT get_Enum([out, retval] IEnumString  **ppVal);
	};

[
	uuid(DBD4D8E3-DCD4-11D3-83C0-0060081AEB5F),
	version(1.0),
	helpstring("Chapter9_EnumServer 1.0 Type Library")
]
library CHAPTER9_ENUMSERVERLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(DBD4D8F0-DCD4-11D3-83C0-0060081AEB5F),
		helpstring("BasicEnum Class")
	]
	coclass BasicEnum
	{
		[default] interface IBasicEnum;
	};
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?