Lesson 8 please help.

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Khaosfighter
Posts: 2
Joined: April 10th, 2013, 11:24 pm

Lesson 8 please help.

Post by Khaosfighter » April 10th, 2013, 11:28 pm

Don't know what I'm doing wrong but I can't seem to figure this shit out. Keep getting this error message, everything is the same as you do it in the video.

1>..\Assets\Game.cpp(27): error C2062: type 'void' unexpected
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.28
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Attachments
Game.rar
(2.66 KiB) Downloaded 140 times

Conflictus
Posts: 53
Joined: January 7th, 2013, 8:09 am

Re: Lesson 8 please help.

Post by Conflictus » April 11th, 2013, 3:52 am

The problem is the initializer list inside Game.cpp.

it should look like this:

Game::Game( HWND hWnd,const KeyboardServer& kServer )
: gfx( hWnd ),
kbd( kServer )
{}

Khaosfighter
Posts: 2
Joined: April 10th, 2013, 11:24 pm

Re: Lesson 8 please help.

Post by Khaosfighter » April 11th, 2013, 11:04 am

Ah thank you so much! Don't know what happened there, I don't recall changing that.

Post Reply