Thread: OpenGL and Visual c++

  1. #1
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Kent, UK

    OpenGL and Visual c++


    Apologies if this is in the wrong forum.

    Does anyone know of any good tutorials for setting up OpenGL in Visual c++ 9.0? I have found a couple but most of them are horrifically out of date.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    In what respect do you think that which version of compiler (or visual studio) you use would make a difference. Yes, the configuration entries for a setup is probably moved around in the IDE, which you should probably be able to find out how to do using the built in help.

    Or ask specific questions here.

    No one is going to update a tutorial that "works" just because there is one or two newer versions of MS tools.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Check out They include project files I believe, and your new version should be able to convert them upon loading.

  4. #4
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Kent, UK
    Quote Originally Posted by medievalelks View Post
    Check out They include project files I believe, and your new version should be able to convert them upon loading.
    Hi, thanks. These were the tutorials I was initially looking at. Written in '97 and updated in 2000. When I followed his instructions exact I was confronted with a host of code errors. Also he talks about GLaux no longer being supported which is fine and offers some replacement code. But it's just a c++ source file, so I wasn't sure what to do with it.

    I looked around at some other tutorials, some which said I should download glut32. But then where they say to put the lib files don't exist as a directory in vc9.

    I don't know enough about it to work out the problems or what I have to do myself, but maybe that should be a sign that I'm trying to run before I can walk anyway...

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    I actually don't recommend nehe. They program to Win32 code when using a framework like GLFW or GLUT is much better. I recommend looking to the OpenGL Programming Guide (The Red book).

    Also Nehe uses some weird libraries that you can't download from their site for some reason which frameworks provide for you. If you have to learn from them, at least read the manual for an OpenGL framework.

  6. #6
    Join Date
    Oct 2007
    Inside my computer
    You don't really need tutorials for specific IDEs. You know need to understand how the IDEs works.
    For Visual Studio, if you have source file, create a project, then right-click on the project and select add and existing file.
    Then you can compile and use the source.

    For using an API, usually you have to:
    Get the proper headers.
    Set up an include path to where those headers reside.
    Get the proper libraries.
    Set up an include path to where those libraries are.
    Include correct headers in code where you use them.
    Include the correct libraries under additional linker libraries.

    Getting the proper headers & libraries means downloading the SDK for the particular API.
    Setting up include paths can be done under tools -> options -> projects and solution -> VC++ directories (select include files and library files in the combobox).
    Including the correct headers is a non-brainer since it's part of the C++ language.
    The correct linker libraries is done by adding it under project options -> Linker -> input.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Kent, UK
    I found this

    this is the kind of idiot proof tutorial a guy like me needs! :P

    It worked well. Perhaps I should've done a bit more digging before starting this thread so apologies, but thanks to all who replied

  8. #8
    Registered User Terran's Avatar
    Join Date
    May 2008
    Nashua, NH
    the first 5 NEHE guides were cool just to get a taste of OpenGL, now i want more! too bad all the glaux stuff doesn't work. Another book to add to the list i suppose!
    Sorry, but i'm a Code::Blocks man now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors with header files in OpenGL using VisualC++
    By wile_spice in forum Game Programming
    Replies: 3
    Last Post: 06-22-2006, 08:56 AM
  2. OpenGL Not working......
    By Sentral in forum Game Programming
    Replies: 20
    Last Post: 01-18-2006, 03:59 PM
  3. Does vc++ 6 (visual studio 6) supply opengl compiler
    By jaylc185 in forum C++ Programming
    Replies: 2
    Last Post: 05-20-2005, 12:25 AM
    By adrumsolo4u in forum C++ Programming
    Replies: 3
    Last Post: 03-03-2005, 07:36 PM
  5. OpenGL screen view coordinates
    By DavidP in forum Game Programming
    Replies: 1
    Last Post: 03-12-2003, 01:46 PM
Website Security Test