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 / autoaggb.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  878b  |  32 lines

  1. // AutoAggB.cpp : Implementation of CAggregApp and DLL registration.
  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. #include "preagg.h"
  14. #include "Aggreg.h"
  15. #include "AutoAggB.h"
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. //
  19.  
  20. STDMETHODIMP CAutoAggB::InterfaceSupportsErrorInfo(REFIID riid)
  21. {
  22.     if (riid == IID_IAutoAggB)
  23.         return S_OK;
  24.     return S_FALSE;
  25. }
  26.  
  27. STDMETHODIMP CAutoAggB::get_Name(BSTR* pbstrName)
  28. {
  29.     *pbstrName = ::SysAllocString(L"IAutoAggB");
  30.     return S_OK;
  31. }
  32.