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

📄 comcalculator.idl

📁 VisualC高级编程技术精粹.rar
💻 IDL
字号:
// COMCalculator.idl : IDL source for COMCalculator.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	
	[
		object,
		uuid(0E944A9C-A695-4F59-9721-0097563C4E12),
		dual,
		helpstring("ICOMCalculatorObject Interface"),
		pointer_default(unique)
	]
	interface ICOMCalculatorObject : IDispatch
	{
		[id(1), helpstring("method Plus")] HRESULT Plus(float A,float B,float *pResult);
		[id(2), helpstring("method Minus")] HRESULT Minus(float A,float B,float *pResult);
		[id(3), helpstring("method Multiply")] HRESULT Multiply(float A,float B,float *pResult);
		[id(4), helpstring("method Divide")] HRESULT Divide(float A,float B,float *pResult);
		[id(5), helpstring("method Restore")] HRESULT Restore(LPTSTR csFileName, float *pA, float *pB);
	};

[
	uuid(FC89869D-45EB-4304-AC13-2AC647FC0196),
	version(1.0),
	helpstring("COMCalculator 1.0 Type Library")
]
library COMCALCULATORLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	
	[
		uuid(5DEE811E-E4D5-421A-8298-C77856EB1355),
		helpstring("COMCalculatorObject Class")
	]
	coclass COMCalculatorObject
	{
		[default] interface ICOMCalculatorObject;
	};
};

⌨️ 快捷键说明

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