text: Ok to start, here's the beginning of my program (a simple OpenGL program):
  Input.h is as follows:Input.h is as follows:Code:#include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #include "input.h" #define WIN32_LEAN_AND_MEAN HDC hDC=NULL; HGLRC hRC=NULL; HWND hWnd=NULL; HINSTANCE hInstance;
  Used to hold pressed keys, with a simple interface to tell if you want it to be only detected on initial press.Used to hold pressed keys, with a simple interface to tell if you want it to be only detected on initial press.Code:#ifndef INPUT_H #define INPUT_H #define INITPRESSONLY (0 | 128) class Input { public: static bool vkeys[256]; static void markInitialPressOnly(int num, int* flags) { for (int i=0;i<num;vkeys[flags[i++]] = INITPRESSONLY); } static void unmarkInitalPressOnly(int num, int* flags) { for (int i=0;i<num;vkeys[flags[i++]] = false); } } #endif // INPUT_H
  The problem I'm getting is that it says HDC does not name a type. So I moved it to a static variable in WinMain instead of a global variable. It was fine. Then it said HGLRC does not name a type. Is there something wrong with my class? Is my header file messing with the windows API? Am I not including correctly? When I don't include it, the program is fine. I'm using Dev-C++, anyone know what may be wrong?