this will not compile
this is the error I getCode:#include <allegro.h>
int main()
{
allegro_init();
set_gfx_mode(GFX_AUTODETECT, 640,480,0,0);
install_keyboard();
set_color_depth(16);
/******************** Main Menu **************************************/
while (!key[KEY_ESC]){
BITMAP *main;
main = load_bitmap("main.bmp", NULL);
acquire_screen();
blit(main, screen, 0,0,0,0,640,480);
if (key[KEY_1]||key[KEY_1_PAD])
{clear_to_color(screen, 0);
readkey();
}
if (key[KEY_2]||key[KEY_2_PAD])
{clear_to_color(screen, 1);
readkey();
}
if (key[KEY_3]||key[KEY_3_PAD])
{clear_to_color(screen, 2);
readkey();}
}
release_screen();
destroy_bitmap(main);//error here
allegro_exit();
return 0;
}
END_OF_MAIN();
Quote:
cannot convert `int (*)()' to `BITMAP*' for argument `1' to `