FurnaceMan
03-06-2003, 11:56 AM
I am still having trouble with installing the glDrawRangeElements function in MS VC++6. So far, I have:
1. ensured that I have gl version 1.2
2. added the glext.h header file to my project
3. put
PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElementsEXT;
in the declaration section of my C file
4. I put
glDrawRangeElementsEXT =
(PFNGLDRAWRANGEELEMENTSEXTPROC) wglGetProcAddress("glDrawRangeElementsEXT");
in my main(). If I put this statement in the declaration section, I get a "intialize not a constant" error. Apparently, VC++6 thinks I'm trying to declare a constant with the assignment statement.
5. With all that above, the program compiles and links but then bombs out at runtime with a NULL pointer error. Apparently, the wglGetProcAddress function did not return the correct function pointer to glDrawRangeElementsEXT.
6. i have also reloaded my opengl32.dll file to make sure its not corrupted.
I am out of ideas. i would like to find someone I could email my code to so they could take alook. Someone experienced would
probably see the error quickly.
1. ensured that I have gl version 1.2
2. added the glext.h header file to my project
3. put
PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElementsEXT;
in the declaration section of my C file
4. I put
glDrawRangeElementsEXT =
(PFNGLDRAWRANGEELEMENTSEXTPROC) wglGetProcAddress("glDrawRangeElementsEXT");
in my main(). If I put this statement in the declaration section, I get a "intialize not a constant" error. Apparently, VC++6 thinks I'm trying to declare a constant with the assignment statement.
5. With all that above, the program compiles and links but then bombs out at runtime with a NULL pointer error. Apparently, the wglGetProcAddress function did not return the correct function pointer to glDrawRangeElementsEXT.
6. i have also reloaded my opengl32.dll file to make sure its not corrupted.
I am out of ideas. i would like to find someone I could email my code to so they could take alook. Someone experienced would
probably see the error quickly.