Hey people, I was here a while ago learning A4 then I took a short break, I came back just a few days ago and A5 appears to have been out for a bit, I had a look at it and looked at some examples and such, I wanted to see if I could load an image and draw it to the screen so I created a bitmap object and set it to NULL then I tried to assign it an image from my HDD called bob, which is a bitmap image. The problem is when the program runs I get an exception :
First-chance exception at 0x00000000 in AllegroProject.exe: 0xC0000005: Access violation.
Unhandled exception at 0x00000000 in AllegroProject.exe: 0xC0000005: Access violation.
I presume this is because the image assign fails because it can't find my image, I tried quite a few things to get this working, first I tried an absolute path, which did not work, then I put it in the same folder as the .exe that also did not work, I also tried something using the path "hack" someone was calling it although I only partially understood what it was doing and it kept failing at compile so I left it.
So I would really appreciate it if someone could tell me whats wrong with my program.
Line that is the main culprit: al_load_bitmap("bob.bmp");