okay, now i have another similar issue. despite being included after the window.h header, my header file with a class in it has no access to windows types. lemme show you
i have a file name Engine.h that has these include statements at the beginning:
1 2 3 4
|
#include <Windows.h>
#include "Graphics.h"
#include "Input.h"
|
it's interesting, my input.h file has acess to the HWND type, but my graphics.h file does not. Here is my graphics.h file:
Graphics.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#ifndef GRAPHICSCLASS
#define GRAPHICSCLASS
const bool VSYNC_DEPTH = true;
const float SCREEN_DEPTH = 1000.0f;
const float SCREEN_NEAR = 0.1f;
class GraphicsClass
{
public:
GraphicsClass();
~GraphicsClass();
bool Initialize(int, int, HWND);
void Shutdown();
bool Frame();
private:
bool Render();
private:
};
#endif
|
here is the exact error i get when it attempts to build:
1>------ Build started: Project: engine, Configuration: Debug Win32 ------
1> Graphics.cpp
1>c:\users\wyatt\documents\visual studio 2010\projects\engine\engine\graphics.h(14): error C2061: syntax error : identifier 'HWND'
1>c:\users\wyatt\documents\visual studio 2010\projects\engine\engine\graphics.cpp(14): error C2061: syntax error : identifier 'HWND'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========