[AD] trying to make allegro compatible with MFC |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
OK, here is the "version" of winalleg.h that i have made to be compatible with MFC it also makes available windows' RGB thru WINDOWS_RGB the deal is as follows: the MFC compatibility mode will ONLY be activated if you define ALLEGRO_AND_MFC before including the header winalleg.h if you don't define it, winalleg.h will work as always, but if you do (iow, if in MFC compatibility mode) since MFC uses their own ASSERT and TRACE (and they are needed because other MFC headers than the standard one (afxwin.h) expect those defines), Allegro's ASSERT and TRACE will be available thru ALLEG_ASSERT and ALLEG_TRACE summary, this new winalleg.h do: 1. makes windows' RGB available thru WINDOWS_RGB 2. works as last winalleg.h if ALLEGRO_AND_MFC is not defined 3. if defined, swirtches to MFC compatibility mode where the only (known) bad thing (unavoidable) is that allegro's ASSERT and TRACE will have to be accesed trhu ALLEG_ASSERT and ALLEG_TRACE what do you think? is this good enough?
Attachment:
winalleg.h
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |