Lesson 6: Run-time faults
Hiya,
First of let me say that Nehe Productions is really great!!! I've been doing the tutorials up to lessing 6, in a few hours and they are really clear! In lesson six is the function *LoadBMP(). This gives me troubles. I've narrowed the fault down to the part with:
File = fopen(Filename, "r");
After this is exits (giving false at the next if, so the pointer is NULL). I know this is probably because of the new string hassle since VC++ 2005 Express edition. Anybody know how to solve this? I've tried replacing Filename with an actual string, but his gives me errors too.
Any help is welcome!
Joe
Are you sure that string actually points to a file.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
As far as I know it does. Also I tried copying the texture.bmp to all possible projectdirectories and rebuild it, but that didn't help the problem either. I made sure the bitmap was 64x64, but that didn't work either. Now I'm kinda stuck...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement