J'ai donc recherché un peu avec google mais l'installation est compliquée

Puis j'ai lu qu'on pouvais directement sous dev installer allegro, alors je l'ai fais

Seulement maintenant, les programmes se compilent mais certain truc ne marche pas

Par exemple :
[code]#include <allegro.h>
int main() {
allegro_init();
allegro_message("Hello World!");
return 0;
}
END_OF_MAIN();[/code]
Ca fonctionne parfaitement et ca m'affiche Hello World! dans une boite de dialogue, donc jusque la pas de problème

mais avec ce code :
[code]#include <allegro.h>
int main()
{
// Initialize Allegro.
allegro_init();
// Set the resolution to 640 by 480 with SAFE autodetection.
set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
// Installing the keyboard handler.
install_keyboard();
// Printing text to the screen.
textout(screen, font, "Hello World!", 1, 1, 10);
textout(screen, font, "Press ESCape to quit.", 1, 12, 11);
// Looping until the ESCape key is pressed.
while(! key[KEY_ESC]);
// Exit program.
allegro_exit();
return 0;
}
// Some Allegro magic to deal with WinMain().
END_OF_MAIN();[/code]
L'écran passe en 640 par 480 puis revient directement sous windows (en 1024


Impossible de savoir s'il a écrit le texte, mais une chose est sure, c'est qu'il n'attend pas l'appui de [ESC]...
Donc voilà, j'aimerais savoir d'où peut venir ce problème, et si ca vient de mon installation ?