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

📄 sieveatl.idl

📁 The code for this article was written for version 1.0 of the Active Template Library (ATL). The cu
💻 IDL
字号:
// SieveATL.idl : IDL source for SieveATL.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	
[
	object,
	uuid(18315EE2-B8D4-11CF-AEC1-444553540000),
	dual, hidden,
	helpstring("ISieveATL Interface"),
	pointer_default(unique)
]
interface ISieveATL : IDispatch
{
	[propget, id(0x60020000), helpstring("The next prime number")] 
	HRESULT NextPrime([out, retval] short *piVal);
	[propget, id(0x60020001), helpstring("The maximum prime number to evalutate")] 
	HRESULT MaxPrime([out, retval] short *piVal);
	[propput, id(0x60020001)] 
	HRESULT MaxPrime([in] short iVal);
	[propget, id(0x60020003), helpstring("Count of calculated prime numbers")] 
	HRESULT Primes([out, retval] short *piVal);
	[id(0x60020004), helpstring("Reinitialize the prime number counter")] 
	HRESULT Reinitialize();
	[id(0x60020005), helpstring("Get all primes in a given array")] 
	HRESULT AllPrimes(SAFEARRAY(short) *ai);
};

[
	uuid(18315EE3-B8D4-11CF-AEC1-444553540000),
	version(1.2),
	helpstring("Sieve of Eratosthenes As C++ ATL DLL")
]
library SIEVEATLLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(18315EE7-B8D4-11CF-AEC1-444553540000),
		helpstring("CSieveATL Class")
	]
	coclass CSieveATL
	{
		[default] interface ISieveATL;
	};
};

⌨️ 快捷键说明

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