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

Please fix your indentation, it is crazy!

Also, we may need to see the contents of CAMERA.h

My indentation is fine in my file, posting it here obscured it. But I figured out my problem. Thanks for taking a look though =)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.