Need a function 2 "PAUSE" and "RESUME" execution of a prg

Discussion in 'C++' started by Ritesht93, Aug 31, 2010.

  1. Ritesht93

    Ritesht93 New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hey guys!!
    i m a student.....n tryin 2 make a game in C++.....game is goin on very well but i hav a question.
    i m using borland c++ 3.0 compiler....i hav 2 necessarily use this bcoz v hav d same compiler at high skool.....i'll start using d latest within few weeks.....but i hav to finish dis game within 1/2 a month.....i hav created 2 buttons named as "PAUSE" AND "RESUME"....
    nw i need dat ....when i click these buttons....they must do d functions at tym of execution.....i.e if i click pause......the game or rather the execution must be PAUSED.....n if i resume.....the game(i.e execution) must start from where i paused......is there any system function to pause and resume...at tym of execution....if so plzzz let me kno....:-/....
    THANKS IN ADVANCE!!
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    There is nothing to pause the execution but if you have some timer you can pause.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice