I've been using OpenGL for only a couple of days, and I'm just starting to experiment with textures. The problem I'm having (as mentioned above) is that when I try running the program inside of C::B (Build>>Run), it fails to load the image (even though the output .exe is in the same directory as the .bmp image). However when I run the .exe in Windows Explorer the image loads in without any problems. So it seems like C::B is running the .exe from another directory other than where the output .exe is. I've tried adding the .bmp file to the project, but that didn't change anything. Is there anyway I can either get C::B to run the .exe in the output directory (if that's the problem), or add the .bmp to the project somehow to make it load properly? Here's a copy of my build log if it helps:
Checking for existence: C:\Users\Kevin\Documents\C++\OpenGL\Textures\Textures.exe
Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "C:\Users\Kevin\Documents\C++\OpenGL\Textures\Textures.exe" (in C:\Program Files\CodeBlocks\MinGW\bin)