Skip to main content
gamedev.net
🔒 Locked

Basecode crash?

Started by Aargyle May 5, 2003 at 11:29 PM 2 replies 400+ views
Original Post
Aargyle
Aargyle
I have a friend who can't get the compiled basecode to run on his machine, and I've narrowed down the problem to this line:
    
this->hRC = wglCreateContext (this->hDC);	// Try To Get A Rendering Context

    
Does anyone know what kinds of things can make the wgl functions fail? My friend is running windows XP and a geforce 3 with the latest drivers. I'm shocked to see the basecode not run, I'm suspecting his machine is screwed up somehow... It doesn't hang, it just exits and pops up the "Failed to create OpenGL window" messagebox. It fails on the line given above, i.e. hRC is not set properly. [edited by - aargyle on May 5, 2003 12:32:05 AM]
Ekim_Gram
Ekim_Gram
I had a problem with it from the site. The pdf version works great though.



There''s no town drunk here, we all take turns.
Velocity Gaming Force
DuncanBojangles
DuncanBojangles
Did you copy that directly from your code? I hate to point this out, either making me look stupid or actually finding the problem. Is that space between wglCreateContext and (this->hDC); meant to be there? I noticed that in the tutorials, Nehe leaves a space between the function names and the arguments, making a compiler error. It is only in the HTML, though. This probably isn''t the problem, but I thought I might point it out.
"Donkey, if it were me, you'd be dead."I cna ytpe 300 wrods pre mniute.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.