?? bank.idl
字號:
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -