Im trying to create an object of my CAMERA class in my APP class, but I am getting the error:
error C2146: syntax error : missing ';' before identifier 'myCam'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
#ifndef APP_H
#define APP_H
#include <windows.h>
#include "main.h"
#include "CAMERA.h"
///MENU RESOURCES///
#define ID_FILE_NEW 101
////////////////////
class APP
{
public:
APP();
void init_MainWnd(HINSTANCE, int);
void init_DrawWnd(HINSTANCE, int);
void init_MENU();
void AdjustDrawWnd(RECT);
void init_d3d(HWND);
void clean_d3d();
HWND GetMainHWND();
HWND GetDrawHWND();
CAMERA myCam;
private:
INT MAIN_WIDTH,
MAIN_HEIGHT,
DRAW_WIDTH,
DRAW_HEIGHT,
DRAW_LEFT,
DRAW_TOP;
WNDCLASSEX C_MainWnd,
C_DrawWnd;
HWND HWND_MainWnd,
HWND_DrawWnd;
HMENU HMENU_hMenu,
HMENU_hSubMenu;
LPDIRECT3D9 d3d;
LPDIRECT3DDEVICE9 d3ddev;
};
#endif