Re: [AD] Allegro 4.0.3rc1+ MFC, bug? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> What I think the problem is is that allegro shouldn't declare WinMain if
> ALLEGRO_AND_MFC is defined, because MFC has it's own WinMain.
Definitely. Could you try the attached patch? Thanks in advance.
That didn't work: defining NO_MAGIC_MAIN at winalleg.h doesn't have any
effect, since it's included after allegro.h
But the patch I send does work :)
It take me time to figure out at what header I should put that code.
_________________________________________________________________
MSN Fotos: la forma más fácil de compartir e imprimir fotos.
http://photos.msn.es/support/worldwide.aspx
--- allegro/include/allegro/platform/almsvc.h.old Sat Feb 22 13:55:26 2003
+++ allegro/include/allegro/platform/almsvc.h Wed Mar 05 00:05:56 2003
@@ -43,6 +43,9 @@
#define ALLEGRO_NO_MAGIC_MAIN
#endif
+#ifdef ALLEGRO_AND_MFC
+ #define ALLEGRO_NO_MAGIC_MAIN
+#endif
/* describe how function prototypes look to MSVC */
#if (defined ALLEGRO_STATICLINK) || (defined ALLEGRO_SRC)