Lesson 6 Help.. Initialization Failure
Okay so basically my headers look the following:
#include <windows.h> // Header File For Windows
#include <stdio.h> // Header File For Standard Input/Output
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include "glext.h"
#include "bmp.h" // Header File For The Glaux Library
There are no syntax errors to my knowledge because everything compiles fine. But when I run the app, it is giving me the boolean error saying "Initialization Failed." Does anyone know why this is happening? The code is identical to lesson 06 except for the glext.h, bmp.h, and bmp.cpp in there, so I am lost completely.
Probably has something to do with the bitmap loading functions.
To make sure it locates the bitmap file, you can use this function:
If that doesn't help, step through the program with a debugger to find where exactly the initialization is failing.
To make sure it locates the bitmap file, you can use this function:
bool exists(const char *fileName) { FILE *file = fopen(fileName, "r"); if (!file) return false; fclose(file); return true;}
If that doesn't help, step through the program with a debugger to find where exactly the initialization is failing.
OOP Articles | C++: A Dialog (free book) | Thinking in C++ (free book) | Google Books - Free preview for many books
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement