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

  1. // DuckInt.h : Declaration of the CDuckInt
  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. #ifndef __DUCKINT_H_
  14. #define __DUCKINT_H_
  15.  
  16. #include "duck.h"
  17. #include "resource.h"       // main symbols
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDuckInt
  20. class ATL_NO_VTABLE CDuckInt :
  21.     public CComObjectRootEx<CComObjectThreadModel>,
  22.     public CComCoClass<CDuckInt, &CLSID_DuckInt>,
  23.     public IDuckInt
  24. {
  25. public:
  26.     CDuckInt()
  27.     {
  28.     }
  29.  
  30. DECLARE_REGISTRY_RESOURCEID(IDR_DUCKINT)
  31. DECLARE_NOT_AGGREGATABLE(CDuckInt)
  32.  
  33. BEGIN_COM_MAP(CDuckInt)
  34.     COM_INTERFACE_ENTRY(IDuckInt)
  35. END_COM_MAP()
  36.  
  37. // IDuckInt
  38. public:
  39.     STDMETHOD(Walk)(BSTR szWhosCalling);
  40.     STDMETHOD(Paddle)(BSTR szWhosCalling);
  41.     STDMETHOD(Flap)(BSTR szWhosCalling);
  42.     STDMETHOD(Quack)(BSTR szWhosCalling);
  43. protected:
  44. };
  45.  
  46. #endif //__DUCKINT_H_
  47.