
Tutorial #1 HELP!!!
I''m a newbie programmer with OpenGL. I know a little bit. I am using NeHe OpenGL tutorial #1, but when i run it, it always gives me this error:
''Cannot create a device context!''
What does that mean?! I''m using Dev-C++ as my compiler, and i''ve tried to run this program on many different computers. It still gives me the same error!
What am i supposed to do?! I''m so frustrated.

Air-Conditioners are like computers. They stop working when you open windows.
Are you sure that you have an OpenGl enabled Driver? Or video card?
- Trust no one -
how can i tell? where can i get the latest drivers?
Air-Conditioners are like computers. They stop working when you open windows.
If you are using the actual code explained on the page then I beleive you need the MS Visual C++ compiler. That code is Windows specific. For Dev-C++ I beleive you will need to use the GLUT version or one of the other appropriate versions listed at the bottom of his tutorial page.
I have never used Dev-C++ so I have no idea if it can be used to create windows programs (with WinMain and all), but i have the feeling it is primarily for console applications.
[edited by - IllMind on December 3, 2002 10:36:52 PM]
I have never used Dev-C++ so I have no idea if it can be used to create windows programs (with WinMain and all), but i have the feeling it is primarily for console applications.
[edited by - IllMind on December 3, 2002 10:36:52 PM]
It can be used for creating windows programs. I am using the version 5 of Dev-Cpp, but if you create a new project, and use the opengl template, then just add your files to that, it should have most of the files all ready for you to use.
The OpenGL template uses the WinMain procedure and has all the neccessary libraries and compiler options setup under the project options etc.
If you are unable to even run the sample program that they provide (spinning triangle) then there's something wrong with your opengl drivers I would suspect.
[edited by - deepdene on December 3, 2002 10:46:07 PM]
The OpenGL template uses the WinMain procedure and has all the neccessary libraries and compiler options setup under the project options etc.
If you are unable to even run the sample program that they provide (spinning triangle) then there's something wrong with your opengl drivers I would suspect.
quote:
Original post by IllMind
If you are using the actual code explained on the page then I beleive you need the MS Visual C++ compiler. That code is Windows specific. For Dev-C++ I beleive you will need to use the GLUT version or one of the other appropriate versions listed at the bottom of his tutorial page.
I have never used Dev-C++ so I have no idea if it can be used to create windows programs (with WinMain and all), but i have the feeling it is primarily for console applications.
[edited by - IllMind on December 3, 2002 10:36:52 PM]
[edited by - deepdene on December 3, 2002 10:46:07 PM]
are u sure? how come i wasn''t able to run it on new dell computers in my school''s computer lab?
oh well, i guess you guys are right with the opengl drivers. where can i get them?
oh well, i guess you guys are right with the opengl drivers. where can i get them?
Air-Conditioners are like computers. They stop working when you open windows.
quote:
Original post by IllMind
If you are using the actual code explained on the page then I beleive you need the MS Visual C++ compiler. That code is Windows specific. For Dev-C++ I beleive you will need to use the GLUT version or one of the other appropriate versions listed at the bottom of his tutorial page.
I have never used Dev-C++ so I have no idea if it can be used to create windows programs (with WinMain and all), but i have the feeling it is primarily for console applications.
[edited by - IllMind on December 3, 2002 10:36:52 PM]
They have ports at the bottom of the tutorials where you can download the code for most compilers!
[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]
quote:
Original post by sab3156
are u sure? how come i wasn''t able to run it on new dell computers in my school''s computer lab?
oh well, i guess you guys are right with the opengl drivers. where can i get them?
google it...
[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]
I remember when I got my Dell, it was a Pentium 4, 1.4ghz, GeForce2 ULTRA and did not come with OpenGL capable drivers because I believe (I think, I forget kind of though) that NVIDIA did not have drivers for the cards yet to support OpenGL, or the latest versions.
So make sure you have the latest drivers.
Check your Video Card''s Manufacturer''s site.
If you do not know your video card, click Start->Run->Type dxdiag -> hit enter...
It''s under the display tab and is labeled Chip Type: (Geforce2 ULTRA for me)
<- http://www.digitalexplosions.com ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
So make sure you have the latest drivers.
Check your Video Card''s Manufacturer''s site.
If you do not know your video card, click Start->Run->Type dxdiag -> hit enter...
It''s under the display tab and is labeled Chip Type: (Geforce2 ULTRA for me)
<- http://www.digitalexplosions.com ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement