bank.idl
来自「本程序是利用com原理开发的一个ATM机与银行之间的分布式应用」· IDL 代码 · 共 43 行
IDL
43 行
// Bank.idl : IDL source for Bank.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (Bank.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(7354C409-F375-474F-AA74-25786D7B55D4),
dual,
helpstring("IAccount Interface"),
pointer_default(unique)
]
interface IAccount : IDispatch
{
[id(1), helpstring("method Login")] HRESULT Login(BSTR AccountID, BSTR Pswd, BOOL *pIsValid);
[id(2), helpstring("method GetCurrentFund")] HRESULT GetCurrentFund(BSTR AccountID, float * pCurFund);
[id(3), helpstring("method Deposit")] HRESULT Deposit(BSTR AccountID, float saving, float * pCurFund);
[id(4), helpstring("method WithDraw")] HRESULT WithDraw(BSTR AccountID, float drawing, float *pCurFund);
};
[
uuid(FA43A1FD-3973-4EE1-8016-7525977731CF),
version(1.0),
helpstring("Bank 1.0 Type Library")
]
library BANKLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(820DEDC2-D384-471B-9B81-DE71EE7CC974),
helpstring("Account Class")
]
coclass Account
{
[default] interface IAccount;
};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?