home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / activedoc / activectl.cpp next >
C/C++ Source or Header  |  1998-04-03  |  878b  |  33 lines

  1. // ActiveCtl.cpp : Implementation of CActiveDoc
  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 "stdafx.h"
  14. #include "ActiveDoc.h"
  15. #include "ActiveCtl.h"
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CActiveDoc
  19.  
  20. STDMETHODIMP CActiveDoc::InterfaceSupportsErrorInfo(REFIID riid)
  21. {
  22.     static const IID* arr[] =
  23.     {
  24.         &IID_IActiveDoc,
  25.     };
  26.     for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
  27.     {
  28.         if (InlineIsEqualGUID(*arr[i],riid))
  29.             return S_OK;
  30.     }
  31.     return S_FALSE;
  32. }
  33.