#1
  1. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0

    Timer to terminate program


    I have to write a program that will terminate after 30 seconds, I have not a clue on how to go about ending it in the specified time frame...

    Any help would be greatly appreciated.

    Thank You!
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,638
    Rep Power
    4247
    Please tell us your OS (i.e. Windows, Linux, FreeBSD etc.) and development tools (gcc, C++ Builder, Visual C++ etc.) first.
  4. #3
  5. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    Sorry, I'm just beginning, & know next to nothing.
    Im using XP with Visual c++ 6
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,638
    Rep Power
    4247
    See http://msdn.microsoft.com/library/en...asp?frame=true for an example of how to use timers. Hope this helps :)

IMN logo majestic logo threadwatch logo seochat tools logo