AGCAsteroid.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __AGCAsteroid_h__
  2. #define __AGCAsteroid_h__
  3. /////////////////////////////////////////////////////////////////////////////
  4. // AGCAsteroid.h : Declaration of the CAGCAsteroid class.
  5. //
  6. #include "resource.h"
  7. #include "IAGCAsteroidImpl.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CAGCAsteroid
  10. //
  11. class ATL_NO_VTABLE CAGCAsteroid :
  12. public IAGCAsteroidImpl<CAGCAsteroid, IasteroidIGC, IAGCAsteroid, &LIBID_AGCLib>,
  13. public ISupportErrorInfo,
  14. public CComCoClass<CAGCAsteroid, &CLSID_AGCAsteroid>
  15. {
  16. // Declarations
  17. public:
  18. DECLARE_REGISTRY_RESOURCEID(IDR_AGCAsteroid)
  19. DECLARE_PROTECT_FINAL_CONSTRUCT()
  20. // Interface Map
  21. public:
  22. BEGIN_COM_MAP(CAGCAsteroid)
  23. COM_INTERFACE_ENTRIES_IAGCAsteroidImpl()
  24. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  25. END_COM_MAP()
  26. // Category Map
  27. public:
  28. BEGIN_CATEGORY_MAP(CAGCAsteroid)
  29. IMPLEMENTED_CATEGORY(CATID_AGC)
  30. END_CATEGORY_MAP()
  31. // ISupportsErrorInfo Interface Methods
  32. public:
  33. STDMETHODIMP InterfaceSupportsErrorInfo(REFIID riid);
  34. };
  35. /////////////////////////////////////////////////////////////////////////////
  36. #endif //__AGCAsteroid_h__