home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / ObjRepos / comobject.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-01  |  636 b   |  29 lines

  1. [!outputon] // $Revision:   1.4  $
  2. // [!CPPName] : Implementation of [!ClassName] (CoClass: [!CoClassName], Interface: [!InterfaceName])
  3.  
  4. #include <vcl.h>
  5. #pragma hdrstop
  6.  
  7. #include "[!HeaderName]"
  8. [!crlf]
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // [!ClassName]
  12. [!crlf]
  13. [!if=(ErrorInfoEnabled, "TRUE")]
  14. STDMETHODIMP [!ClassName]::InterfaceSupportsErrorInfo(REFIID riid)
  15. {
  16.     static const IID* arr[] = 
  17.     {
  18.         &IID_[!InterfaceName],
  19.     };
  20.  
  21.     for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
  22.     {
  23.         if (InlineIsEqualGUID(*arr[i],riid))
  24.             return S_OK;
  25.     }
  26.     return S_FALSE;
  27. }
  28. [!endif]
  29.