delorie.com/archives/browse.cgi | search |
From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Problem with windows and delay() |
Date: | Sat, 26 Apr 1997 13:55:47 -0400 |
Organization: | Cornell University http://www.cornell.edu |
Lines: | 34 |
Sender: | asu1 AT cornell DOT edu (Verified) |
Message-ID: | <336241A3.3506@cornell.edu> |
References: | <33609000 DOT FB1 AT csc DOT liv DOT ac DOT uk> |
Reply-To: | asu1 AT cornell DOT edu |
NNTP-Posting-Host: | cu-dialup-0011.cit.cornell.edu |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Daniel Johnson wrote: > > Why won't this code work in a Windows DOS box, but will under > straight DOS ? > > /*******************/ > #include <stdio.h> > #include <stdlib.h> > > int main(void) { > delay(2500); /* Simple 5 second delay */ > exit(0); /* Exit with no error */ > } > /*******************/ > > It compiles and links correctly (and so it should) but just > fails to work in windows... what do you mean by "does not work"? is it that the delay is not the same as you expected or does it hang or does it print something and abort. i think i replied to an earlier post of yours on the same topic asking if including the correct header file makes any difference (it is dos.h.) does it? -- Sinan ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:sinan DOT unur AT cornell DOT edu C ^ http://www.people.cornell.edu/pages/asu1/ \ ~/ *******************************************************************
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |