#include "wx/resource.h"
#endif
+#if wxUSE_DRAG_AND_DROP
+#include <ole2.h>
+#endif
#include <string.h>
#include <ctype.h>
#define _DEBUG
#endif
+ /* Need to undef new if including crtdbg.h */
+ #ifdef new
+ #undef new
+ #endif
+
#include <crtdbg.h>
+
+ #if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS && wxUSE_DEBUG_NEW_ALWAYS
+ #define new new(__FILE__,__LINE__)
+ #endif
+
#endif
extern char *wxBuffer;
bool wxApp::Initialize()
{
+ // Some people may wish to use this, but
+ // probably it shouldn't be here by default.
+#ifdef __WXDEBUG__
+// wxRedirectIOToConsole();
+#endif
+
wxBuffer = new char[1500];
#ifdef wxUSE_VC_CRTDBG
return FALSE;
}
*/
-
+
+#ifndef __GNUWIN32__
// we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) )
wxFatalError(_("Cannot initialize OLE"));
+#endif
#if CTL3D
if (!Ctl3dRegister(wxhInstance))
if ( wxDisableButtonBrush )
::DeleteObject( wxDisableButtonBrush ) ;
+#ifndef __GNUWIN32__
::OleUninitialize();
+#endif
#if CTL3D
Ctl3dUnregister(wxhInstance);