Dans un e-mail dat=E9 du 19/04/2002 15:17:57 Paris, Madrid (heure d'=E9t=E9)=
,=20
mu...@gm... a =E9crit :
> /* Allegro test */
>=20
> #include <allegro.h>
> #include <winalleg.h>
> #include <windows.h>
>=20
> int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
> {
> allegro_init();
>=20
> if(os_type =3D=3D OSTYPE_WINXP)
> {
> MessageBox(NULL, "XP has been detected.", "WinXP", MB_OK);
> }
> else
> {
> MessageBox(NULL, "XP was not detected.", "Error!", MB_OK |=20
> MB_ICONHAND);
> return 1;
> }
>=20
> // Do stuff here
>=20
> return 0;
> }=20
>=20
>=20
Choose Allegro Project(Static Linked) when you create your project.
Delete all the code and paste yours. All is fine for me with Dev-c++ 4.1 and=
=20
Windows XP familial edition. After compilation, i've got an executable of 33=
3=20
Ko.
|