Article View: borland.public.cppbuilder.nativeapi
Article #1336Re: Console applicaton and sleep()
From: Remy Lebeau (TeamB)
Date: Tue, 18 Sep 2007 19:52
Date: Tue, 18 Sep 2007 19:52
26 lines
1805 bytes
1805 bytes
"Andre Steenveld" <a.steenveld@id.umcn.nl> wrote in message news:46f01013@newsgroups.borland.com... > Since the application is a console application I can't include <windows.h>. Yes, you can. Console apps have full access to the Win32 API, as they are Win32 processes to begin with. There is no such thing as true DOS in Windows anymore. A console window is a 32-bit process that simply mimics the DOS environment so old DOS apps can still run. But being a true 32-bit process, the Win32 DLLs are available for console apps to use if they want to. > If I do, a load of compile errors is the result. Then you did not set up your project correctly to begin with. Did you use the Console Application wizard when you created the project? > Does someone know how to call a windows API call from a console application? Just call it. It works fine in console projects. Gambit
Technical Details
Message-ID:
<46f02cc1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46f01013@newsgroups.borland.com> Subject: Re: Console applicaton and sleep() Date: Tue, 18 Sep 2007 12:52:42 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.29.61 Message-ID: <46f02cc1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1190145217 75.83.29.61 (18 Sep 2007 12:53:37 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail