lynology wrote:
> The
> problem I have is in creating a delay timer so that a message appears
> on my screen for only one second.
> case 2: Start_Timer();
> while (!Timer_Expired(DELAY_1SEC))
> strcpy(CG_ScreenKeyboard.Screen, "Display Message");
> Clear_Screen();
Timer_Expired() is called with one argument. Whether this compiles,
depends on a previous declaration (which you `condensed out'). But
surely, it won't link with your definition below.
> I would love to get
> suggestions on why this delay loop is not be executing the command
> within the loop
Presumimng, that the while-condition is true for exactly one second,
there will be many, many strcpy() executions in this time (depending on
your CPU speed). But I can't see a single _output_ statement. Is there
some hidden magic in writing to CG_ScreenKeyboard.Screen?
> and any alternative methods to achieving the same
> results.
Please consult the documentation of CG_ScreenKeyboard. This is not a
standard C++ class, so I'm afraid, that nobody here can help you.
Ralph
|