home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / drawctl / draw.cpp < prev    next >
C/C++ Source or Header  |  1998-04-02  |  484b  |  21 lines

  1. // Draw.cpp : Implementation of CDrawCtl
  2. #include "stdafx.h"
  3. #include "Draw.h"
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CDrawCtl
  7.  
  8. STDMETHODIMP CDrawCtl::InterfaceSupportsErrorInfo(REFIID riid)
  9. {
  10.     static const IID* arr[] = 
  11.     {
  12.         &__uuidof(IDrawCtl),
  13.     };
  14.     for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
  15.     {
  16.         if (InlineIsEqualGUID(*arr[i],riid))
  17.             return S_OK;
  18.     }
  19.     return S_FALSE;
  20. }
  21.