Everything was all peachy up until creating the user function. I moved on and watch how the code went, and from what I could tell I had everything Chili had. Right now I have in Game.h
"void DrawFace( int x, int y );"
Under the "User Function" Defined area.
As well I have
"void Game::DrawFace( int x, int y );
{
face code
} "
The Problem:
When I compile/run I get
"1>------ Build started: Project: Chili DirectX Framework, Configuration: Release Win32 ------
1> Game.cpp
1>..\Assets\Game.cpp(35): error C2761: 'void Game::DrawFace(int,int)' : member function redeclaration not allowed
1>..\Assets\Game.cpp(36): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
And in Game.cpp "void Game::DrawFace" the DrawFace has a red squiggly line underneath it.
I see that it says '{' missing function header But I dont see how that is missing.
Also I don't understand how its re-declaring the member function.
Lesson 8 issue
Re: Lesson 8 issue
Lose the semicolon after DrawFace( int x, int y ) bro!Mettler wrote:As well I have
"void Game::DrawFace( int x, int y );
{
face code
} "
Chili
Re: Lesson 8 issue
seems my issue is using ; to much! D;