Ok to start, here's the beginning of my program (a simple OpenGL program):
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;
Input.h is as follows:
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
Used to hold pressed keys, with a simple interface to tell if you want it to be only detected on initial press.
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?