Thread: Needing help with Open GL tutorials

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Thumbs down Needing help with Open GL tutorials

    Hello to all, im stuck at Open GL tutorials by RoD. The thing is that there are several example codes, but i cant compile/build them. only one that compiles is the first ''hello world'' example. others give errors from not finding stdafix.h and errors from something using NULL non-pointers converting and such. i suppose the codes should be all rigth and i thought i would check out what theyd do and figure how they work but now i cant : ( hope that someone can help me with this matter.



    Links to the codes i tried to compile:
    A First Windows Application - Cprogramming.com
    Your First OpenGL Program - OpenGL Tutorials - Cprogramming.com



    and errors that the first link gave "First Windows Application":

    \Ohjelmat\C++\Kehittyneet harjoitukset\WinApp.cpp D:\Ohjelmat\C++\Kehittyneet harjoitukset\D stdafx.h: No such file or directory.

    D:\Ohjelmat\C++\Kehittyneet harjoitukset\WinApp.cpp In function `int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':

    82 D:\Ohjelmat\C++\Kehittyneet harjoitukset\WinApp.cpp [Warning] passing NULL used for non-pointer converting 1 of `HWND__* CreateWindowExA(DWORD, const CHAR*, const CHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)'

    90 D:\Ohjelmat\C++\Kehittyneet harjoitukset\WinApp.cpp [Warning] passing NULL used for non-pointer converting 3 of `BOOL PeekMessageA(tagMSG*, HWND__*, UINT, UINT, UINT)'

    90 D:\Ohjelmat\C++\Kehittyneet harjoitukset\WinApp.cpp [Warning] passing NULL used for non-pointer converting 4 of `BOOL PeekMessageA(tagMSG*, HWND__*, UINT, UINT, UINT)'


    And btw, these errors were given by dev-c++ compiler, ive tried visual studios c++ to build this and Code::blocks too, nothing qualifies the code, so what am i missing?

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    2
    I got it up and running now.. dont know what helped but the point is that it works ^^ still there is one problem though, with the stdafx.h, i cant put it in my code, for some reason it doesnt work in visual studios 2010 even that is supposed to be its own personal thing. but nevertheles, its only supposed to speed up the compiling so i guess it doesnt matter.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open GL programming
    By insane in forum C++ Programming
    Replies: 2
    Last Post: 05-03-2003, 11:28 PM
  2. open gl
    By super_monkey in forum Game Programming
    Replies: 8
    Last Post: 10-20-2001, 05:22 PM
  3. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  4. open GL
    By super_monkey in forum Game Programming
    Replies: 2
    Last Post: 10-10-2001, 08:31 PM
  5. Direct x, open gl, but wait....what if...whoa, read this!
    By Leeman_s in forum Game Programming
    Replies: 2
    Last Post: 10-08-2001, 03:37 PM