Article View: borland.public.cppbuilder.nativeapi
Article #1334Re: Console applicaton and sleep()
From: dhoke
Date: Tue, 18 Sep 2007 19:26
Date: Tue, 18 Sep 2007 19:26
21 lines
1719 bytes
1719 bytes
"Andre Steenveld" <a.steenveld@id.umcn.nl> wrote in message news:46f01013@newsgroups.borland.com... > Hi, > > I've a problem with a console application and the Sleep() api call. > ...snip... > > Since the application is a console application I can't include > <windows.h>. If I do, a load of compile errors is the result. Ed already told you how to address your issue. But, FWIW, it is possible to build a console application that includes windows.h. Whatever your compile errors are when you include windows.h, they are not likely caused specifically by a console application including windows.h. I occasionally write small console appls that include windows.h to test something specific, and they (eventually) build and run without error.
Technical Details
Message-ID:
<46f026da@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46f01013@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,12ae2dc26e53d1eb X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "dhoke" <dhoke.nojunk@east-shore.com> From: "dhoke" <dhoke.nojunk@east-shore.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46f01013@newsgroups.borland.com> Subject: Re: Console applicaton and sleep() Date: Tue, 18 Sep 2007 15:26:55 -0400 Lines: 23 Organization: East Shore Technologies, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 70.18.110.218 Message-ID: <46f026da@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1190143706 70.18.110.218 (18 Sep 2007 12:28:26 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail