Archived

This topic is now archived and is closed to further replies.

NeHe Tutorial

This topic is 5648 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having trouble with the texture mapping tutorial. The code compiles fine on LCC-WIN32. The executable crashes at the line with: auxDIBImageLoad(Filename). I do not know why. Does anyone know of a way to fix this or a function that can take its place? Thanks - Sean

Share this post


Link to post
Share on other sites
Is the file there? Is the path correct? I''m not familiar with LCC-WIN32, but does it put executables in seperate folders (like MSVC++ and the Debug folder)? If so, fool around with where you place your BMP file so that it is properly loaded.

Share this post


Link to post
Share on other sites
This is what I first thought. I ran the debugger and found that the file is in the correct folder. The file is opened correctly, but when it gets to the auxDIBImageLoad(Filename) function is crashes with the exception of (void*)0. I tried moving the bitmap to a different folder and a message box informs me the program could not find the bitmap. Any other ideas? Thanks.

- Sean

Share this post


Link to post
Share on other sites