0

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
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by LevyDee
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.