interface IMyAPI: IDispatch { [id(1), helpstring("メソッド MsgBox")] HRESULT MsgBox( [in] BSTR Message, [in,optional] VARIANT Title ); [id(2), helpstring("メソッド Repeat")] HRESULT Repeat( [in] BSTR Value, [in] long nCnt, [out,retval] BSTR *pVal ); };