Ok, I am rewriting the 'ScoreBoard' function in a new project. Got it implimented so it creates, opens, writes, edits, reads the file flawlessly.
So I began trying to add features to have the program read the file and print results to a highscore screen in the program.
So I created a function somewhat similar to this one (I have tried about twenty different ways):
Code: Select all
void PrintBoard()
{
char buffer[64];
sprintf(buffer,"Score: %d ",score );
gfx.DrawString(buffer,x,y,&fixedSys,D3DCOLOR_XRGB(255,0,0));
if(nextScore)
{
nextScore->PrintBoard();
}
}
I think I am missing something simple here to solve these issues, but for some reason it's not clicking. Can someone take a minute to explain how I should be creating/calling this function? There is something about this scope/static/who has access to what that is not quite registering in my brain.
Thanks!