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 ==========
Lesson 8 please help.
-
- Posts: 2
- Joined: April 10th, 2013, 11:24 pm
Lesson 8 please help.
- Attachments
-
- Game.rar
- (2.66 KiB) Downloaded 140 times
-
- Posts: 53
- Joined: January 7th, 2013, 8:09 am
Re: Lesson 8 please help.
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 )
{}
it should look like this:
Game::Game( HWND hWnd,const KeyboardServer& kServer )
: gfx( hWnd ),
kbd( kServer )
{}
-
- Posts: 2
- Joined: April 10th, 2013, 11:24 pm
Re: Lesson 8 please help.
Ah thank you so much! Don't know what happened there, I don't recall changing that.