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

  1. // ObjTwo.h : header file
  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. /////////////////////////////////////////////////////////////////////////////
  15. // CObjectTwo: ATL implementation
  16.  
  17. class CObjectTwo :
  18.     public IDispatchImpl<IObjectTwo, &IID_IObjectTwo, &LIBID_MfcAtl>,
  19.     public CComObjectRoot,
  20.     public CComCoClass<CObjectTwo, &CLSID_ObjectTwo>
  21. {
  22. public:
  23.     CBeeper();
  24.     BEGIN_COM_MAP(CObjectTwo)
  25.         COM_INTERFACE_ENTRY(IDispatch)
  26.         COM_INTERFACE_ENTRY(IObjectTwo)
  27.     END_COM_MAP()
  28.  
  29.     DECLARE_NOT_AGGREGATABLE(CObjectTwo)
  30.  
  31.     DECLARE_REGISTRY(CObjectTwo, _T("MfcAtl.ObjectTwo.1"), _T("MfcAtl.ObjectTwo"), IDS_OBJECT_TWO_DESC, THREADFLAGS_APARTMENT)
  32. // IObjectTwo
  33. public:
  34.     STDMETHOD(get_SayHello)(BSTR* bstr);
  35. };
  36.