Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sleep() does not work in Watcom C/C++ 10.0??

183 views
Skip to first unread message

Kwan

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to
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


Reply: m...@picasso.ece.curtin.edu.au

Kwan Wu


kmc...@vms.cis.pitt.edu

unread,
Feb 6, 1996, 3:00:00 AM2/6/96
to

> 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

================================================================
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)
================================================================

Matt Francis

unread,
Feb 7, 1996, 3:00:00 AM2/7/96
to
kmc...@vms.cis.pitt.edu wrote:

>> 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
\__________/


Derek Burnheim

unread,
Feb 18, 1996, 3:00:00 AM2/18/96
to
>> 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
>>
sleep() is the wrong function, it's for use in multiprocessing
applications.

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


0 new messages