NeHe Tutorial

Started by
1 comment, last by sccorourke 21 years, 9 months ago
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
Advertisement
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.
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

This topic is closed to new replies.

Advertisement