Changes to allow OLE to compile under mingw32/gcc-2.95

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
J. Russell Smyth
1999-08-09 17:47:28 +00:00
parent 98781fa30e
commit 7dee726c7e
8 changed files with 27 additions and 8 deletions

View File

@@ -69,11 +69,13 @@
#endif
// OLE is used for drag-and-drop, clipboard, OLE Automation...
#ifndef wxUSE_NORLANDER_HEADERS
#if defined(__GNUWIN32__) || defined(__SC__) || defined(__SALFORDC__)
#undef wxUSE_OLE
#define wxUSE_OLE 0
#endif // broken compilers
#endif
#if wxUSE_OLE
#include <ole2.h>
@@ -218,7 +220,6 @@ bool wxApp::Initialize()
while (!SetMessageQueue(iMsg) && (iMsg -= 8))
;
#endif // Win16
// we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) )
wxLogError(_("Cannot initialize OLE"));

View File

@@ -29,6 +29,10 @@
#include "wx/msw/private.h"
#include <wtypes.h>
#include <unknwn.h>
#include <ole2.h>
#define _huge
#include <ole2ver.h>
#include <oleauto.h>

View File

@@ -27,18 +27,23 @@
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
#include "wx/defs.h"
#if defined(__WIN32__) && !defined(__GNUWIN32__)
#if defined(__WIN32__) && !defined(__GNUWIN32__) || defined(wxUSE_NORLANDER_HEADERS)
#include "wx/log.h"
#include "wx/dataobj.h"
#include <windows.h>
#ifdef wxUSE_NORLANDER_HEADERS
#include <ole2.h>
#endif
#include <oleauto.h>
#ifndef __WIN32__
#ifndef __WIN32__
#include <ole2.h>
#include <olestd.h>
#endif

View File

@@ -27,6 +27,9 @@
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/window.h"
#endif
#include "wx/setup.h"
@@ -37,6 +40,9 @@
#include "wx/msw/ole/dropsrc.h"
#include <windows.h>
#ifdef wxUSE_NORLANDER_HEADERS
#include <ole2.h>
#endif
#ifndef __WIN32__
#include <ole2.h>