?? comcalculator.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 + -