I compiled your code and it work fine for me. Did you get a bmp image for the program to load up? Cause that is what the program does is loads a bitmap. If you dont have a bitmap to load up that...
Type: Posts; User: Breander
I compiled your code and it work fine for me. Did you get a bmp image for the program to load up? Cause that is what the program does is loads a bitmap. If you dont have a bitmap to load up that...
For one i think END_OF_MAIN(); has to be in all capitals I think but you probably did that and it all so has to be after the } bracket of your main (). If you did all that try posting your code...
I myself just started learning allegro a little over a week ago. I bought a book called game programing all in one. Which is pretty much all about allegro. I highly recomend that book if you want to...
Your right I didnt try compiling the code earlier but I did and it works fine for me.
The only thing that I can think of is that allegro wasn't compiled correctly for Visual C++.
If your using Dev C++. You need to make sure youve downloaded the Allegro dev pack from the auto updater. When you do you have to make sure you copy the the allegro40.dll to your c:\windows\win32...
I think your problem is this.
It should either be this
Or this.
Hope that helps!! :)