trademgmt.idl

来自「Chapter08-Transactions.rar com example」· IDL 代码 · 共 42 行

IDL
42
字号
// TradeMgmt.idl : IDL source for TradeMgmt.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	
	[
		object,
		uuid(E494DFDF-1A97-4003-8106-5CCA512CC791),
		dual,
		helpstring("ITradeMgr Interface"),
		pointer_default(unique)
	]
	interface ITradeMgr : IDispatch
	{
		[id(1), helpstring("method BuyStocks")] HRESULT BuyStocks([in] BSTR bsClient, [in] BSTR bsSymbol, [in] long lShares);
	};

[
	uuid(CC2571AF-B231-49D3-952C-0C13BCF750D9),
	version(1.0),
	helpstring("TradeMgmt 1.0 Type Library")
]
library TRADEMGMTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	
	[
		uuid(D19ABFAD-8266-4066-82AB-C1BD6C66B324),
		helpstring("TradeMgr Class")
	]
	coclass TradeMgr
	{
		[default] interface ITradeMgr;
	};
};

⌨️ 快捷键说明

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