Hello.
I am not sure how to describe problem, so il trow it at you right now.
At EventHandle.h, i included a "App.h" whyc contains "class App", and i tried to make a object of class App and i get this error
C:\c++ Project\WarCall 0.0.1\EventHandle.h|12|error: 'App' has not been declared| (Line with this error has alot of * simbols)
(i tryed including a "App.h" in .cpp file and making object of class App there, and it works)
ani hints how to bypass this.
/* EventHandle.h */
#ifndef EVENTHANDLE_H_INCLUDED
#define EVENTHANDLE_H_INCLUDED
#include <SDL.h>
#include "App.h"
class EventHandle
{
public:
SDL_Event eventList;
void EventMain(App *obj_App); ************************
void EventKeyDown();
void EventKeyUp();
};
#endif // EVENTHANDLE_H_INCLUDED
/* App.h */
#ifndef APP_H_INCLUDED
#define APP_H_INCLUDED
#include <SDL.h>
#include "define.h"
#include "EventHandle.h"
class App
{
/* Main stuff */
public:
int AppLoop(App *obj_App);
Uint8 Init();
void Exit();
Uint8 AppInit();
void AppExit();
private:
SDL_Surface *surf_Screen;
bool is_On;
public:
SDL_Surface** GETP_surf_Screen();
SDL_Surface* GET_surf_Screen();
void SET_surf_Screen(SDL_Surface*);
bool GET_is_On();
void SET_is_On(bool);
/* Class objects */
private:
EventHandle obj_EventHandle;
};
#endif // APP_H_INCLUDED
/* FIXED */