merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / activex / main / SOComWindowPeer.cpp
blob39e4c5ad4df4f0f3085b30086047daf29debef91
1 // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration.
3 #include "stdafx2.h"
4 #include "so_activex.h"
5 #include "SOComWindowPeer.h"
7 /////////////////////////////////////////////////////////////////////////////
8 //
10 STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid)
12 static const IID* arr[] =
14 &IID_ISOComWindowPeer,
17 for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
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;
26 return S_FALSE;