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

  1. // Chain.cpp : Implementation of CCOMMapApp 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 "premap.h"
  14. #include "Chain.h"
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. //
  18.  
  19. STDMETHODIMP CChainBase::InterfaceSupportsErrorInfo(REFIID riid)
  20. {
  21.     if (riid == __uuidof(IChain))
  22.         return S_OK;
  23.     return S_FALSE;
  24. }
  25.  
  26. STDMETHODIMP CChainBase::get_Name2(BSTR* pbstrName)
  27. {
  28.     *pbstrName = ::SysAllocString(L"IChain");
  29.     return S_OK;
  30. }
  31.