// Created: 19.02.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
-#pragma implementation "oleutils.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef __CYGWIN10__
-#include <windows.h>
+#include "wx/msw/private.h"
+
+#ifdef __WXWINCE__
+ #include <winreg.h>
+ #include <ole2.h>
+
+ #define GUID_DEFINED
+ #define UUID_DEFINED
+#endif
// OLE
+#ifndef __WXWINCE__
#include "wx/msw/ole/uuid.h"
+#endif
+
#include "wx/msw/ole/oleutils.h"
#if defined(__VISUALC__) && (__VISUALC__ > 1000)
// Implementation
// ============================================================================
-// return TRUE if the iid is in the array
+// return true if the iid is in the array
bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount)
{
for ( size_t i = 0; i < nCount; i++ ) {
if ( riid == *aIids[i] )
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
-#if wxUSE_DRAG_AND_DROP
+#if wxUSE_DATAOBJ
// ----------------------------------------------------------------------------
// Debug support
}
}
+#ifndef __WXWINCE__
// unknown IID, just transform to string
Uuid uuid(riid);
return wxString((const wxChar *)uuid);
+#else
+ return wxEmptyString;
+#endif
}
void wxLogQueryInterface(const wxChar *szInterface, REFIID riid)
wxLogTrace("After %s::Release: m_cRef = %d", szInterface, cRef - 1);
}
-#endif //WXDEBUG
+#endif // __WXDEBUG__
#endif
// wxUSE_DRAG_AND_DROP