orderentry.idl

来自「Visual_C++[1].NET_Bible1 Visual_C++宝典书中」· IDL 代码 · 共 39 行

IDL
39
字号
// OrderEntry.idl : IDL source for OrderEntry
//

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

import "oaidl.idl";
import "ocidl.idl";

[
	object,
	uuid(42363644-0245-40BF-95E4-50B472D9DE47),
	dual,
	nonextensible,
	helpstring("ICreateOrder Interface"),
	pointer_default(unique)
]
interface ICreateOrder : IDispatch{
  [id(1), helpstring("method AddLineItem")] HRESULT AddLineItem([in] BSTR* pbstrSku, [in] SHORT sQuantity);
  [id(2), helpstring("method ProcessOrder")] HRESULT ProcessOrder(void);
};
[
	uuid(3A6582E7-7FB2-4377-8A42-80BBB7518352),
	version(1.0),
	helpstring("OrderEntry 1.0 Type Library")
]
library OrderEntryLib
{
	importlib("stdole2.tlb");
	[
		uuid(EDE01DE8-BACF-48CD-9DCA-F93D24A38E8B),
		helpstring("CreateOrder Class")
	]
	coclass CreateOrder
	{
		[default] interface ICreateOrder;
	};
};

⌨️ 快捷键说明

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