Originally Posted by
tabstop
Had you defined your application manager class correctly, you wouldn't be getting this error. Therefore you aren't doing so. Perhaps there's something gone wrong in application.h?
Well...here is the application class header.
Code:
#ifndef _APP_H_
#define _APP_H_
#include "d3dgraphics.h"
class Application
{
public:
Application(void);
~Application(void);
virtual void LoadContent();
virtual void UnloadContent();
void DrawStart(GraphicDevice);
virtual void Draw(void);
void DrawEnd(GraphicDevice);
virtual void Update();
void SetFrameRate(float value);
float FrameRate(void) {return _FrameRate;}
private:
float _FrameRate;
};
#endif
Here is D3DGraphics.h file
Code:
#ifndef _GRAPHIC_DEVICE_H_
#define _GRAPHIC_DEVICE_H_
#include <windows.h>
#include <d3d9.h>
#include "Window.h"
#pragma comment (lib, "d3d9.lib")
class GraphicDevice
{
public:
GraphicDevice(Window app);
void Dispose();
void Draw();
D3DPRESENT_PARAMETERS DeviceInfo() {return _DeviceInfo;}
LPDIRECT3D9 Interface() {return _Interface;}
LPDIRECT3DDEVICE9 Device() {return _Device;}
private:
D3DPRESENT_PARAMETERS _DeviceInfo;
LPDIRECT3D9 _Interface;
LPDIRECT3DDEVICE9 _Device;
};
#endif
Here is the window.h file
Code:
#ifndef _WINDOW_H_
#define _WINDOW_H_
#include <windows.h>
#include <windowsx.h>
#include "Point.h"
class Window
{
public:
Window(HINSTANCE currentHandle, int ShowCMD, bool fullscreen);
Window(HINSTANCE currentHandle, int ShowCMD, int width, int height, bool fullscreen);
Window(HINSTANCE currentHandle, int ShowCMD, int width, int height, int x, int y, bool fullscreen);
Window(HINSTANCE currentHandle, int ShowCMD, Point size, Point location, bool fullscreen);
~Window(void);
void Initialize(void);
int State(void);
int Width() {return _Width;}
int Height() {return _Height;}
int X() {return _X;}
int Y() {return _Y;}
bool isFullscreen() {return Fullscreen;}
HWND &Handle() {return WindowHandle;}
private:
WNDCLASSEX WindowObject;
HINSTANCE Instance;
HWND WindowHandle;
int _Width, _Height, _X, _Y;
bool Fullscreen;
protected:
};
#endif
All classes appear to be declared and define properly to me. Do you see any problems?