EquationDemo.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:7k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 5.01.0164 */
  3. /* at Mon Mar 01 11:43:40 2010
  4.  */
  5. /* Compiler settings for D:VCday14EquationDemoEquationDemo.idl:
  6.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  11. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  12. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  13. #endif
  14. #include "rpc.h"
  15. #include "rpcndr.h"
  16. #ifndef __RPCNDR_H_VERSION__
  17. #error this stub requires an updated version of <rpcndr.h>
  18. #endif // __RPCNDR_H_VERSION__
  19. #ifndef COM_NO_WINDOWS_H
  20. #include "windows.h"
  21. #include "ole2.h"
  22. #endif /*COM_NO_WINDOWS_H*/
  23. #ifndef __EquationDemo_h__
  24. #define __EquationDemo_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28. /* Forward Declarations */ 
  29. #ifndef __IMyEquation_FWD_DEFINED__
  30. #define __IMyEquation_FWD_DEFINED__
  31. typedef interface IMyEquation IMyEquation;
  32. #endif  /* __IMyEquation_FWD_DEFINED__ */
  33. #ifndef __MyEquation_FWD_DEFINED__
  34. #define __MyEquation_FWD_DEFINED__
  35. #ifdef __cplusplus
  36. typedef class MyEquation MyEquation;
  37. #else
  38. typedef struct MyEquation MyEquation;
  39. #endif /* __cplusplus */
  40. #endif  /* __MyEquation_FWD_DEFINED__ */
  41. /* header files for imported files */
  42. #include "oaidl.h"
  43. #include "ocidl.h"
  44. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  45. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  46. /* interface __MIDL_itf_EquationDemo_0000 */
  47. /* [local] */ 
  48. typedef struct  Root
  49.     {
  50.     float r1;
  51.     float r2;
  52.     } Root;
  53. typedef struct  Equation
  54.     {
  55.     float a;
  56.     float b;
  57.     float c;
  58.     } Equation;
  59. extern RPC_IF_HANDLE __MIDL_itf_EquationDemo_0000_v0_0_c_ifspec;
  60. extern RPC_IF_HANDLE __MIDL_itf_EquationDemo_0000_v0_0_s_ifspec;
  61. #ifndef __IMyEquation_INTERFACE_DEFINED__
  62. #define __IMyEquation_INTERFACE_DEFINED__
  63. /* interface IMyEquation */
  64. /* [unique][helpstring][dual][uuid][object] */ 
  65. EXTERN_C const IID IID_IMyEquation;
  66. #if defined(__cplusplus) && !defined(CINTERFACE)
  67.     
  68.     MIDL_INTERFACE("A9C49F53-8102-4629-BFF5-E1A8AC730000")
  69.     IMyEquation : public IDispatch
  70.     {
  71.     public:
  72.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE solve( 
  73.             /* [in] */ Equation __RPC_FAR *equ,
  74.             /* [out] */ Root __RPC_FAR *__RPC_FAR *roots) = 0;
  75.         
  76.     };
  77.     
  78. #else  /* C style interface */
  79.     typedef struct IMyEquationVtbl
  80.     {
  81.         BEGIN_INTERFACE
  82.         
  83.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  84.             IMyEquation __RPC_FAR * This,
  85.             /* [in] */ REFIID riid,
  86.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  87.         
  88.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  89.             IMyEquation __RPC_FAR * This);
  90.         
  91.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  92.             IMyEquation __RPC_FAR * This);
  93.         
  94.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  95.             IMyEquation __RPC_FAR * This,
  96.             /* [out] */ UINT __RPC_FAR *pctinfo);
  97.         
  98.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  99.             IMyEquation __RPC_FAR * This,
  100.             /* [in] */ UINT iTInfo,
  101.             /* [in] */ LCID lcid,
  102.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  103.         
  104.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  105.             IMyEquation __RPC_FAR * This,
  106.             /* [in] */ REFIID riid,
  107.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  108.             /* [in] */ UINT cNames,
  109.             /* [in] */ LCID lcid,
  110.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  111.         
  112.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  113.             IMyEquation __RPC_FAR * This,
  114.             /* [in] */ DISPID dispIdMember,
  115.             /* [in] */ REFIID riid,
  116.             /* [in] */ LCID lcid,
  117.             /* [in] */ WORD wFlags,
  118.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  119.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  120.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  121.             /* [out] */ UINT __RPC_FAR *puArgErr);
  122.         
  123.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *solve )( 
  124.             IMyEquation __RPC_FAR * This,
  125.             /* [in] */ Equation __RPC_FAR *equ,
  126.             /* [out] */ Root __RPC_FAR *__RPC_FAR *roots);
  127.         
  128.         END_INTERFACE
  129.     } IMyEquationVtbl;
  130.     interface IMyEquation
  131.     {
  132.         CONST_VTBL struct IMyEquationVtbl __RPC_FAR *lpVtbl;
  133.     };
  134.     
  135. #ifdef COBJMACROS
  136. #define IMyEquation_QueryInterface(This,riid,ppvObject)
  137.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  138. #define IMyEquation_AddRef(This)
  139.     (This)->lpVtbl -> AddRef(This)
  140. #define IMyEquation_Release(This)
  141.     (This)->lpVtbl -> Release(This)
  142. #define IMyEquation_GetTypeInfoCount(This,pctinfo)
  143.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  144. #define IMyEquation_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  145.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  146. #define IMyEquation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  147.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  148. #define IMyEquation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  149.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  150. #define IMyEquation_solve(This,equ,roots)
  151.     (This)->lpVtbl -> solve(This,equ,roots)
  152. #endif /* COBJMACROS */
  153. #endif  /* C style interface */
  154. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMyEquation_solve_Proxy( 
  155.     IMyEquation __RPC_FAR * This,
  156.     /* [in] */ Equation __RPC_FAR *equ,
  157.     /* [out] */ Root __RPC_FAR *__RPC_FAR *roots);
  158. void __RPC_STUB IMyEquation_solve_Stub(
  159.     IRpcStubBuffer *This,
  160.     IRpcChannelBuffer *_pRpcChannelBuffer,
  161.     PRPC_MESSAGE _pRpcMessage,
  162.     DWORD *_pdwStubPhase);
  163. #endif  /* __IMyEquation_INTERFACE_DEFINED__ */
  164. #ifndef __EQUATIONDEMOLib_LIBRARY_DEFINED__
  165. #define __EQUATIONDEMOLib_LIBRARY_DEFINED__
  166. /* library EQUATIONDEMOLib */
  167. /* [helpstring][version][uuid] */ 
  168. EXTERN_C const IID LIBID_EQUATIONDEMOLib;
  169. EXTERN_C const CLSID CLSID_MyEquation;
  170. #ifdef __cplusplus
  171. class DECLSPEC_UUID("7A2F845C-D946-436E-9648-FA0B16852D40")
  172. MyEquation;
  173. #endif
  174. #endif /* __EQUATIONDEMOLib_LIBRARY_DEFINED__ */
  175. /* Additional Prototypes for ALL interfaces */
  176. /* end of Additional Prototypes */
  177. #ifdef __cplusplus
  178. }
  179. #endif
  180. #endif