home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / commap / aggreg / autoagg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  873 b   |  31 lines

  1. // AutoAgg.cpp : Implementation of CAggregApp and DLL registration.
  2. //
  3. // This is a part of the ActiveX Template Library.
  4. // Copyright (C) 1996 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // ActiveX Template Library Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // ActiveX Template Library product.
  12.  
  13. #include "preagg.h"
  14. #include "AutoAgg.h"
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. //
  18.  
  19. STDMETHODIMP CAutoAgg::InterfaceSupportsErrorInfo(REFIID riid)
  20. {
  21.     if (riid == __uuidof(IAutoAgg))
  22.         return S_OK;
  23.     return S_FALSE;
  24. }
  25.  
  26. STDMETHODIMP CAutoAgg::get_Name(BSTR* pbstrName)
  27. {
  28.     *pbstrName = ::SysAllocString(L"IAutoAgg");
  29.     return S_OK;
  30. }
  31.