/////////////////////////////////////////////////////////////// // sum.h - declaration of Sum interface class // // ver 1.0 // // // // Language: Visual C++, ver 6.0 // // Platform: Micron Dual Pentium Pro 200, Win NT 4.0 // // Application: Demo: CSE791 - Distributed Objects // // Author: Jim Fawcett, CST 2-187, Syracuse Univ. // // (315) 443-3948, fawcett@ecs.syr.edu // /////////////////////////////////////////////////////////////// // Sum.h : Declaration of the CSum #ifndef __SUM_H_ #define __SUM_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CSum class ATL_NO_VTABLE CSum : public CComObjectRootEx, public CComCoClass, public ISum { public: CSum() { } DECLARE_REGISTRY_RESOURCEID(IDR_SUM) DECLARE_NOT_AGGREGATABLE(CSum) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CSum) COM_INTERFACE_ENTRY(ISum) END_COM_MAP() // ISum public: STDMETHOD(Sum)(/*[in]*/ int x, /*[in]*/ int y, /*[out]*/ int *z); }; #endif //__SUM_H_