Hi,
I am a new user to OpenGL.
currently, I installed visual c++ 2005 expressed edition beta in my winxp.
I also put the required gl.h, glu.h, glut.h and all the libs and dlls to the correct directories.
I tried a code, which needs windows.h. Then I copied a source file on line, and put it into VC\include, the file is got from the below http://doc.ddart.net/msdn/header/include/windows.h.html
the problems is that, there are a number of header files included in the windows.h, and I have none…it’s kind of impossible to seach every single file and copy them. How to solve this problem?
Originally posted by chaosy: I installed visual c++ 2005 expressed edition beta
Heh. Frankly speaking, I have no idea how vc++ 2005 even looks like. Anyway, I think that thing about include files didn’t actually change. When you include a header file, #include <windows.h>
you don’t need to look for all other headers that are included in <windows.h>. Thery are avaible for a compiler in it’s INCLUDE directory. If that’s the reason your program does not compile, you have to be doing something else wrong. Maybe some source code would help.
Originally posted by ZbuffeR: You need to include windows.h before gl.h on Windows.
Works, but kind of overkill. You can get away with sticking the following snippet before the <gl.h> #include.