Re: [AD] comments about winalleg.h

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


nope, i was wrong
is there any way to use allegro with MFC? anybody knows? i've been trying
unsuccessfully
if i put

#include <allegro.h>
#include <winalleg.h>
before afxwin.h, etc
then the compiler says that load_bitmap, etc haven't been declared, but it i
put them
after afxwin.h then BITMAP, etc gets redefined

> also I think we could change winalleg to not only support windows api but
> MFC
>
> i think (i havent tried yet) it would be as simple as
> #ifdef MFC_USING_ALLEGRO // this wold be a define put by the user before
> including winalleg.h
> #include <afxwin.h>
> #else
> #include <windows.h>
> #endif
>
> what do you think?
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/