Lesson 8 Help!

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Serotec
Posts: 7
Joined: June 9th, 2012, 12:49 pm

Lesson 8 Help!

Post by Serotec » June 10th, 2012, 4:04 pm

I did everything exactly as Chili showed us, but I get an error when trying to compile. I put my solution in the attachment.

EDIT: I added a screenshot of the 4 errors I'm getting, and where they are all situated which is suprisingly all in the same area. I've highlighted the lines that get errors.
Attachments
error.jpg
Lines that have errors highlighted
(145.22 KiB) Downloaded 191 times
Chili DirectX Framework V12.04.24 (Mk III).rar
This is the solution
(5.44 MiB) Downloaded 143 times

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Lesson 8 Help!

Post by LuX » June 10th, 2012, 4:45 pm

Under the "mouse( mServer)" you need to have a {}.
Just between that and "void Game::..."

Like this:

Code: Select all

Game::Game( HWND hWnd,const KeyboardServer& kServer,const MouseServer& mServer )
:	gfx( hWnd ),
	audio( hWnd ),
	kbd( kServer ),
	mouse( mServer )
{}
ʕ •ᴥ•ʔ

Serotec
Posts: 7
Joined: June 9th, 2012, 12:49 pm

Re: Lesson 8 Help!

Post by Serotec » June 10th, 2012, 4:50 pm

You sir, are a genious. I love you.

User avatar
magusofmirrors
Posts: 56
Joined: May 12th, 2012, 10:03 pm

Re: Lesson 8 Help!

Post by magusofmirrors » June 11th, 2012, 12:13 am

Lying is unforgivable! You said that you "did everything exactly as Chili showed us", yet you disappointed us with a silly, human mistake. You should have known that even empty functions require brackets even though you are just beginning. Now go... go and type the standard "Hello World!" program 100 times. Get your syntax right!

Congratulations!

Man, that is one large image you posted.
The admins are coming!!!

Image

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8 Help!

Post by chili » June 11th, 2012, 3:35 am

I think more than half of the help requests contain "did everything exactly as Chili showed us", and it always cheeses me off just a little. I have to remind myself that I too was once a newbie who would blame the computer, blame the compiler, blame anything but my own incompetence wherever a bug stubbornly eluded me. ;)
Chili

Post Reply