OGL hates me... wglMakeCurrent crashes app
I downloaded lesson 1 from NeHe and it crashes when wglMakeCurrent gets called in the CreateGLWindow function. It seems to happen with all of the tutorials at NeHe. I upgraded my graphics card drivers to detonator 44.03, but it still doesn''t work... *cries* I''m running Windows 2000 Pro with SP3 and a dozen or so hotfixes.
just wondering but Are you speaking of the *.exe''s that are in the zips or the ones that you are compiling form code you write/use
if u are talking about the .cpp code of the tutorials and,if u are compiling it on the VS .NET,then i put an help that (i think) can resolve the problem) search in ..::Help to NewBies::..
what happen?LNK2019 ???
_,,,^Ó..ò^,,,_
what happen?LNK2019 ???
_,,,^Ó..ò^,,,_
quote:Original post by KosmiC_Khaoz
if u are talking about the .cpp code of the tutorials and,if u are compiling it on the VS .NET,then i put an help that (i think) can resolve the problem) search in ..::Help to NewBies::..
what happen?LNK2019 ???
_,,,^Ó..ò^,,,_
As I understand his problem, his program crashes but compiles .
PS: Linking errors existed in VS 6 too, you know...
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Didn''t you modify the code at all? Did you run the included .exe file or did you compile it?
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Actually, I''m using visual basic... plz dont laugh, lol I tried running the code from the ide and using the *.exe from the visual c++ zip file. Neither work.
i didn't understand,u are compiling C++ code on VB? or u run *.exe of the C++ zip file and compile the VB file?
what's ur video card?
my english suck's sorry...
_,,,^Ó..ò^,,,_
[edited by - KosmiC_Khaoz on July 28, 2003 2:13:14 PM]
what's ur video card?
my english suck's sorry...
_,,,^Ó..ò^,,,_
[edited by - KosmiC_Khaoz on July 28, 2003 2:13:14 PM]
I compiled the VB version of lesson 1''s source code. It compiles fine but when wglMakeCurrent gets executed my program crashes. I also tried running the exe that comes with the c++ code, and it crashes too.
c++ code: http://nehe.gamedev.net/data/lessons/vc/lesson01.zip
vb code: http://nehe.gamedev.net/data/lessons/vb/lesson01.zip
c++ code: http://nehe.gamedev.net/data/lessons/vc/lesson01.zip
vb code: http://nehe.gamedev.net/data/lessons/vb/lesson01.zip
By chance do you use a Voodoo3 3000? On my old computer, I would have this happen about 25% of the time, but only the first time it was called. The crash was completely random (and horrible).
My only suggestion is to call it with invalid parameters the at the very begining of your program. Possibly this will not lock up and all subsequent calls to it may work correctly assuming it will only crash the first time its called. good luck....
My only suggestion is to call it with invalid parameters the at the very begining of your program. Possibly this will not lock up and all subsequent calls to it may work correctly assuming it will only crash the first time its called. good luck....
Err... He is using a nVidia card. He said he downloaded the detonator drivers.
Edit: Just get Visual C++ and try to compile the code, if it doesn't work than it is your system. You can reinstall Windows, get a new video card, if it doesn't work than get a new computer, lol .
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
[edited by - shlomisteinberg on July 29, 2003 1:04:54 AM]
Edit: Just get Visual C++ and try to compile the code, if it doesn't work than it is your system. You can reinstall Windows, get a new video card, if it doesn't work than get a new computer, lol .
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
[edited by - shlomisteinberg on July 29, 2003 1:04:54 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement