I finally got allegro installed in my computer. I tried it for MSVC++ and Borland 5.0 but there were always errors like unresolved external, missing '}' in allegro.h (??) etc. I got it now working for Dev C++ 4, but I can not execute some code now(It compiles correctly, but it crashes during execution)
The code is
At first execution it worked, but now windows gives error
// Initialize Allegro.
// Set the resolution to 640 by 480 with SAFE autodetection.
set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
// Installing the keyboard handler.
// 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.
poll_keyboard(); // This shouldn't be necessary in Windows.
// Exit program.
// Some Allegro magic to deal with WinMain().
Any help appreciated.(By the way, i'm using XP)