I did it like you said, it shows this:
Unhandled exception at 0x00000000 in game.exe: 0xC0000005: Access violation.
I have already created a game, just want to add an icon. Also, thanks for pointing out pointers, i am a bit of laggy there
Also, i didn't know this command al_set_display_icon(display, icon);
I wrote in my third post(and tried out in the program), this:
ALLEGRO_BITMAP *image = "image.ico"
than wrote the line(and tried out in the program):
void al_set_display_icon(ALLEGRO_DISPLAY *display, ALLEGRO_BITMAP *image)
Also, created the display the same way (if you think i don't know anything):
const int WIDTH = 700;
const int HEIGHT = 700;
ALLEGRO_DISPLAY *display = NULL;
display = al_create_display(WIDTH, HEIGHT);