#include "wx/msw/private.h"
+// Don't implement WinMain if we're building an MFC/wxWindows
+// hybrid app.
+#if wxUSE_MFC && !defined(NOMAIN)
+#define NOMAIN 1
+#endif
+
// from src/msw/app.cpp
extern void WXDLLEXPORT wxEntryCleanup();
#if !defined(_WINDLL)
-#if defined(__TWIN32__) || defined(__WXWINE__) || defined(__WXMICROWIN__)
+#if defined(__WXWINE__)
+ #define HINSTANCE HINSTANCE__*
+
+ extern "C"
+#elif defined(__TWIN32__) || defined(__WXMICROWIN__)
#define HINSTANCE HANDLE
extern "C"