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?