Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post Posted: August 3rd, 2017, 10:50 am 
 

Joined: June 22nd, 2017, 12:53 pm
Posts: 5
Location: Perth Western Australia
hey guys just need a little bit of help

void game::ComposeFrame ()
{

its underlined red in game. cpp and i dont know how to fix it the scopes are lined up and highlighted when i click them
just dont know how to fix the compose frame underline

cheers in advance.


Top 
 Profile  
Reply with quote  
 Post Posted: August 3rd, 2017, 1:24 pm 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 166
It will tell you the error (unless Intellisense is just slow and hasn't updated yet) when you build the solution. From the example you gave us I'd think you need to add a } to the end of
Code:
void game::ComposeFrame ()
{

Like this
Code:
void Game::ComposeFrame()
{
}


and capitalize
Code:
game::ComposeFrame()
, because programming is case-sensitive. (Like I did in the second example I gave.)


Top 
 Profile  
Reply with quote  
 Post Posted: August 4th, 2017, 9:03 am 
 

Joined: June 22nd, 2017, 12:53 pm
Posts: 5
Location: Perth Western Australia
nah its not that i havnt touched compose frame at all it just underlined after i deleted some pixel codes


Top 
 Profile  
Reply with quote  
 Post Posted: August 4th, 2017, 11:43 am 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 166
Are you using Visual Studio 2017?


Top 
 Profile  
Reply with quote  
 Post Posted: August 4th, 2017, 3:14 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2663
Location: Oklahoma, United States
You should clean and ZIP your project or upload to GitHub and let us see for ourselves where the issue is. It's kind of hard to trouble shoot by just making shots in the dark. For instance, you say you haven't touched ComposeFrame, yet the code you supplied doesn't match what you say. Besides that, it's always easier and quicker if we aren't guessing.

If you put your mouse cursor over the underlined ComposeFrame, what does intellisense tell you the problem is?

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post Posted: August 5th, 2017, 5:24 am 
 

Joined: June 22nd, 2017, 12:53 pm
Posts: 5
Location: Perth Western Australia
i found the problem one of the statements i wrote in Void Game::UpdateModel() messed up some of the scopes sorry lol


Top 
 Profile  
Reply with quote  
 Post Posted: August 5th, 2017, 7:35 am 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2663
Location: Oklahoma, United States
It happens, and is usually hard to spot.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: