I've tried to use sleep or delay function in (Watcom C/C++
wcl386) my programs, but these function doesn't have any
effect..
Anybody knows why??
Thanks in advance
Reply: m...@picasso.ece.curtin.edu.au
Kwan Wu
later,
Kirk
================================================================
Kirk Christiansen Email: kmc...@pitt.edu
Check out info on my games at: http://www.pitt.edu/~kmcst13/
Download my game TANKGAME from my web page. Its freeware.
----------------------------------------------------------------
"Snake Plissken........I heard of you.........I heard
you were dead." --The Duke (Escape from New York)
================================================================
>> Hi,
>> I've tried to use sleep or delay function in (Watcom C/C++
>> wcl386) my programs, but these function doesn't have any
>> effect..
>>
>> Anybody knows why??
>>
>> Thanks in advance
>>
> That's funny..........I've been using tons of delay() statements
> in my game under Watcom and they work fine. I'm using Watcom 10.5
> and Dos4gw as the extender. Maybe your not including the right
> lib. I'm including dos.h for my lib and it works. If you need
> some source code to try and compile.....let me know.
> later,
> Kirk
Yeah, most likely you haven't included the right .h's. My setup is
~same as above, and I do this /all/ the time... try using printf()
without relevant .h and see how many yuks you have.
-Arinan
__________
/ \
| # # |
| ## # # | The views of the Author are their own. Any sense
| # # ## | in the above document is incidental, and generally
| ## # | completely unintentional :-P
| # # ## |
| # # #| Fake Life ID: Matt Francis
| # # | Email: gm...@dial.pipex.com
\__________/
You sound like you want delay(), which I'm pretty sure wc supports.
Check the docs if this is wrong, but I think the syntax is
delay(n)
where n is the number of milliseconds to delay.
hope this helps
Derek
dbur...@pcug.org.au
"This film is on, On a maddening loop"
Country Feedback - Buck/Berry/Mills/Stipe