⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atlsignal.idl

📁 Beginning Visual C++ 6源码。Wrox。
💻 IDL
字号:
// ATLSignal.idl : IDL source for ATLSignal.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
	

	[
		object,
		uuid(CACE7C2D-5C4E-11D2-963F-00A0C94CB8B3),
		dual,
		helpstring("ISignal Interface"),
		pointer_default(unique)
	]
	interface ISignal : IDispatch
	{
		[propget, id(1), helpstring("property StartRed")] HRESULT StartRed([out, retval] BOOL *pVal);
		[propput, id(1), helpstring("property StartRed")] HRESULT StartRed([in] BOOL newVal);
		[propget, id(2), helpstring("property StopOrGoTime")] HRESULT StopOrGoTime([out, retval] long *pVal);
		[propput, id(2), helpstring("property StopOrGoTime")] HRESULT StopOrGoTime([in] long newVal);
	};

[
	uuid(CACE7C21-5C4E-11D2-963F-00A0C94CB8B3),
	version(1.0),
	helpstring("ATLSignal 1.0 Type Library")
]
library ATLSIGNALLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(CACE7C2F-5C4E-11D2-963F-00A0C94CB8B3),
		helpstring("_ISignalEvents Interface")
	]
	dispinterface _ISignalEvents
	{
		properties:
		methods:
			[id(1)] void SignalChanged([in]long lSignalState);
	};

	[
		uuid(CACE7C2E-5C4E-11D2-963F-00A0C94CB8B3),
		helpstring("Signal Class")
	]
	coclass Signal
	{
		[default] interface ISignal;
		[default, source] dispinterface _ISignalEvents;
	};
};

⌨️ 快捷键说明

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