If you used a project wizard to create the project, you just need to include stdafx.h at the beginning of every cpp file. The error you are getting is because windows.h has not been included. Stdafx.h includes that and other common headers.
Why do these crazy wacky people create header files with references to symbols that they don’t automagically pull in? I’m not a windows coder, but I see people post questions about missing symbols, and the answer always is ‘#include<windows.h>’ before ‘#include<GL/gl.h>’. Come on, fellas of the Gl/gl.h. WHy not include windows.h yourself? Its just… perplexing. With judicious use of #ifndef \ #define you don’t have to worry about multiply defined references.
Soryr, just a rant. Nothing to do with OpenGL or this thread of life in general. But, gees…
er, no. just clarifying; the people who write#include files without referencing all the symbols they use are the guys I’m talkin’ about; not you, the end user of the header file =)