Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Tutorial #1 HELP!!!

This topic is 5640 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
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.

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]

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
Those computers at your lab wouldn''t happen to be running Windows XP would they? Windows XP needs updated drivers for Open GL to work correctly in it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!