Just N Time
April 8th, 1999, 12:40 PM
I need to be able to pause for a peroid of time.. any Ideas??
thank you!
thank you!
|
Click to See Complete Forum and Search --> : Pause?? Timmer? Just N Time April 8th, 1999, 12:40 PM I need to be able to pause for a peroid of time.. any Ideas?? thank you! Daniel Levine April 8th, 1999, 12:58 PM Hi, The SleepEx Win32 API function pauses the program for a specified number of milliseconds. You should check the documentation for full details. Daniel. Masaaki April 8th, 1999, 01:00 PM Hi. Try this. ::Sleep(1000);//All thread will stop during 1000ms. Hope for help. -Masaaki Onishi- Just N Time April 8th, 1999, 01:22 PM All the docs that I have is what came with the cds... ( Microsoft ) and it shows " Void Sleep(DWORD milliseconds); " this generates an error.." sleep does not take 1 param. :( but thank you! :) Just N Time April 8th, 1999, 01:24 PM ok, I should include the " :: " before the Sleep??? thanks ever so much. :) Daniel Levine April 8th, 1999, 01:48 PM That's true. SleepEx takes two params. The first is the number of milliseconds you want to sleep. The second is a BOOL variable that specifies wether or not I/O or APC callbacks should disrupt the sleep. It should work if you use two params (i.e SleepEx(500,FALSE)). Daniel. Just N Time April 8th, 1999, 02:25 PM I will give that a try! and thanks :) Masaaki April 8th, 1999, 02:55 PM Hi. "::" means that this function is an API function. In Vc++, we use "::" from the direct call of API function in MFC project. Hope for help. -Masaaki Onishi- Just N Time April 8th, 1999, 03:03 PM ok, lost me a little but I will read up a little more, I jumped from learning c++ to VC++ & mfc.. getting pretty far tho for only a week of spare time... All thats left from my frist program is either a function that will read values (strings) from a file in reandom order or to set up an array.. but thats a lot of strings for an array.. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |