home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / commap / aggreg / autoagg.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  44 lines

  1. // AutoAgg.h : Declaration of the CAutoAgg
  2. //
  3. // This is a part of the Active Template Library.
  4. // Copyright (C) 1996-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Active Template Library Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Active Template Library product.
  12.  
  13.  
  14. #include "aggres.h"       // main symbols
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Aggreg
  18.  
  19. class CAutoAgg :
  20.     public IDispatchImpl<IAutoAgg, &IID_IAutoAgg, &LIBID_AGGREGLib>,
  21.     public ISupportErrorInfo,
  22.     public CComObjectRoot,
  23.     public CComCoClass<CAutoAgg,&CLSID_CAutoAgg>
  24. {
  25. public:
  26.     CAutoAgg(){}
  27. BEGIN_COM_MAP(CAutoAgg)
  28.     COM_INTERFACE_ENTRY(IDispatch)
  29.     COM_INTERFACE_ENTRY(IAutoAgg)
  30.     COM_INTERFACE_ENTRY(ISupportErrorInfo)
  31. END_COM_MAP()
  32. //DECLARE_NOT_AGGREGATABLE(CAutoAgg)
  33. // Remove the comment from the line above if you don't want your object to
  34. // support aggregation.  The default is to support it
  35.  
  36. DECLARE_REGISTRY_RESOURCEID(IDR_AutoAgg)
  37. // ISupportsErrorInfo
  38.     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  39.  
  40. // IAutoAgg
  41. public:
  42.     STDMETHOD(get_Name)(BSTR* pbstrName);
  43. };
  44.