X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c740f49634629e47738ea73a199ea1a97640dc53..f3bd1796cae0fc37a45f6b7a61b473e3ddc652ee:/src/msw/ole/oleutils.cpp diff --git a/src/msw/ole/oleutils.cpp b/src/msw/ole/oleutils.cpp index a3499c7025..58b3cd8a16 100644 --- a/src/msw/ole/oleutils.cpp +++ b/src/msw/ole/oleutils.cpp @@ -2,7 +2,7 @@ // Name: ole/oleutils.cpp // Purpose: implementation of OLE helper functions // Author: Vadim Zeitlin -// Modified by: +// Modified by: // Created: 19.02.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin @@ -22,7 +22,6 @@ #endif // For compilers that support precompilation, includes "wx.h". -#define IN_WX_MAIN_CPP #include "wx/wxprec.h" #if defined(__BORLANDC__) @@ -30,8 +29,6 @@ #endif #include - - #include #include @@ -40,8 +37,8 @@ #include #include -#if defined(_MSC_VER) && (_MSC_VER > 1000) -#include +#if defined(__VISUALC__) && (__VISUALC__ > 1000) + #include #endif // ============================================================================ @@ -59,13 +56,13 @@ bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount) return FALSE; } -#if USE_DRAG_AND_DROP +#if wxUSE_DRAG_AND_DROP // ---------------------------------------------------------------------------- // Debug support // ---------------------------------------------------------------------------- -#if defined(__WXDEBUG__) && defined(_MSC_VER) && (_MSC_VER > 1000) +#if defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ > 1000) const char *GetIidName(REFIID riid) { // an association between symbolic name and numeric value of an IID @@ -187,7 +184,25 @@ void wxLogRelease(const char *szInterface, ULONG cRef) wxLogTrace("After %s::Release: m_cRef = %d", szInterface, cRef - 1); } +#elif defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ <= 1000) + +// For VC++ 4 +void wxLogQueryInterface(const char *szInterface, REFIID riid) +{ + wxLogTrace("%s::QueryInterface", szInterface); +} + +void wxLogAddRef(const char *szInterface, ULONG cRef) +{ + wxLogTrace("After %s::AddRef: m_cRef = %d", szInterface, cRef + 1); +} + +void wxLogRelease(const char *szInterface, ULONG cRef) +{ + wxLogTrace("After %s::Release: m_cRef = %d", szInterface, cRef - 1); +} + #endif //WXDEBUG #endif - // USE_DRAG_AND_DROP + // wxUSE_DRAG_AND_DROP