Ok I was set up on win 2k using Visual C++ 6.0 and using some code with the below headers. Everything “was” ok. I do not think the code is important. I think I just haven’t got opengl setup right anymore. My computer fell to a virus and we had to reghost the hard drive. So I am back up now and trying to run the below code but I get a linker error: “instruction at “0x00000000” referenced memory at “0x00000000”. the memory could not be “read”.”
when I click cancel it says “unhandled exception in myProgramsName.exe: 0xC0000005: Access Violation”
My graphics card is a Vision Tek Xtasy 9200 SE and my secondary is a Radeon 9200 SE. I have the latest glut32.dll in in system32 the glut.h in VC98\include\gl and glut32.lib is in the VC98\Lib folder. Like I said everything used to work but I think I may have missed a step somewhere I remember setting up before and it was a little tricky. I might have done something else but I can’t remember. Can anybody read this incredibly long message and help? I have scowered through many threads.
#pragma comment(linker, “/subsystem:“windows” /entry:“mainCRTStartup””)
Edit: Ok setup may be ok. I can run my code when I comment out this statement:
The code is in my init function as below:
glClearColor(0.93f, 0.93f, 0.93f, 0.0f);
BMPClass bmp; BMPLoad("240.bmp",bmp); PFNGLTEXIMAGE3DPROC pglTexImage3D= (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D"); pglTexImage3D(GL_TEXTURE_3D,0,3,bmp.width,bmp.height,1,0,GL_RGB,GL_UNSIGNED_BYTE,bmp.bytes); glTexParameteri(GL_TEXTURE_3D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_3D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glEnable(GL_TEXTURE_3D); return true