|
-
April 8th, 1999, 12:40 PM
#1
Pause?? Timmer?
I need to be able to pause for a peroid of time.. any Ideas??
thank you!
-
April 8th, 1999, 12:58 PM
#2
Re: Pause?? Timmer?
Hi,
The SleepEx Win32 API function pauses the program for a specified number of milliseconds. You should check the documentation for full details.
Daniel.
-
April 8th, 1999, 01:00 PM
#3
Re: Pause?? Timmer?
Hi.
Try this.
::Sleep(1000);//All thread will stop during 1000ms.
Hope for help.
-Masaaki Onishi-
-
April 8th, 1999, 01:22 PM
#4
Re: Pause?? Timmer?
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! 
-
April 8th, 1999, 01:24 PM
#5
Re: Pause?? Timmer?
ok, I should include the " :: " before the Sleep???
thanks ever so much. 
-
April 8th, 1999, 01:48 PM
#6
Re: Pause?? Timmer?
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.
-
April 8th, 1999, 02:25 PM
#7
Re: Pause?? Timmer?
I will give that a try! and thanks 
-
April 8th, 1999, 02:55 PM
#8
Re: Pause?? Timmer?
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-
-
April 8th, 1999, 03:03 PM
#9
Re: Pause?? Timmer?
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|