Original Post
Hi all guys Hi copied this code from Game Programming All in One but i have a problem to run it... I put the immage that i want to see into the screen into the the same folder of the project that i'm making but my program doesn't see it.I took the immage from google and i changed its extension in PCX Help me please :-( Here the code : #include int main(void) { char *filename = "ciao.pcx"; BITMAP *image; int ret; allegro_init(); install_keyboard(); set_color_depth(32); ret = set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0); if (ret != 0) { allegro_message(allegro_error); return 1; } //load the image file image = load_bitmap(filename, NULL); if (!image) { allegro_message("Error loading %s", filename); return 1; } //display the image blit(image, screen, 0, 0, 0, 0, 320, 240); //done drawing—delete bitmap from memory destroy_bitmap(image); //display video mode information textprintf_ex(screen,font,0,0,1,-1,"%dx%d",SCREEN_W,SCREEN_H); //wait for keypress while (!keypressed()); //exit program allegro_exit(); return 0; } END_OF_MAIN()