1 // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. 2 3 #include "stdafx2.h" 4 #include "so_activex.h" 5 #include "SOComWindowPeer.h" 6 7 ///////////////////////////////////////////////////////////////////////////// 8 // 9 10 STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid) 11 { 12 static const IID* arr[] = 13 { 14 &IID_ISOComWindowPeer, 15 }; 16 17 for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++) 18 { 19 #if defined(_MSC_VER) && (_MSC_VER >= 1300) 20 if (InlineIsEqualGUID(*arr[i],riid)) 21 #else 22 if (::ATL::InlineIsEqualGUID(*arr[i],riid)) 23 #endif 24 return S_OK; 25 } 26 return S_FALSE; 27 } 28 29