Article View: borland.public.cppbuilder.nativeapi
Article #7258Re: old functions bioskey(), sound(), nosound(), delay()
From: Morosh
Date: Thu, 24 Feb 2005 07:12
Date: Thu, 24 Feb 2005 07:12
110 lines
5183 bytes
5183 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote in message
news:5eep11tneoc09jc1nft5sr6lo4i0q2imm9@4ax.com...
> Morosh wrote:
>
> >My problem is that my program use functions bioskey(), sound(),
nosound(),
> >delay() that apparently are not supported in version 5.5.
>
> As Andrue mentioned, it's not a compiler limitation. Windows just
> plain doesn't support those functions in a 32bit program.
>
> >Is there an equivalent to this functions in v5.5 somewhere??
>
> bioskey(),
> Depends on exactly what you want to do with it.
> For simple stuff (console application), use the C functions such as
> getch(), or the C++ cin stream.
> For Win32 API, see "Keyboard Input Functions" in Win32.HLP.
>
> sound()
> nosound(),
> Again, depends what you want to do.
> See Beep(void) in BCB5.HLP
> See Win API Beep(freq,duration) in Win32.HLP.
> See also MessageBeep() in Win32.
>
> delay()
> Sleep( milliseconds ) Not accurate, may be longer due to
> Windows task scheduling. Windows also has High Performance Timers for
> more accurate timing requirements, but most apps don't it.
>
> >Also is there a document somewhere describing all functions supported by
the
> >command line bcc32, v5.5??
>
> Maybe not as a "list", but yes...
> All "Standard C" functions.
> Also, you should have also downloaded a bunch of help files.
> Of particular value to me have been:
> TOOLS.HLP which gives the commandline options for each tool,
> BCB5.HLP which lists the C, STL and RW functions
> Win32.HLP which lists the main Windows API Functions (less-used
> functions, such as sockets, are found elsewhere).
>
>
>
>
>
Thanks for clarifications!!
Do you know where can i download BCB5.hlp, I tried some search in Borland
Site, it wasn't successful.
Also, I tried the following small program (my OS is Win98):
#include <winbase.h>
main()
{
Beep();
}
and I compiled using:
bcc32 -6 -fp -N -d test.cpp
I got:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
test.cpp:
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 227: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 227: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 228: Type name expected
Error E2238 C:\COMPILER\BC55\INCLUDE\winbase.h 228: Multiple declaration for
'_OVERLAPPED::ULONG_PTR'
Error E2344 C:\COMPILER\BC55\INCLUDE\winbase.h 227: Earlier declaration of
'_OVERLAPPED::ULONG_PTR'
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 228: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 229: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 229: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 230: Type name expected
Error E2238 C:\COMPILER\BC55\INCLUDE\winbase.h 230: Multiple declaration for
'_OVERLAPPED::DWORD'
Error E2344 C:\COMPILER\BC55\INCLUDE\winbase.h 229: Earlier declaration of
'_OVERLAPPED::DWORD'
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 230: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 231: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 231: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 235: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 235: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 236: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 236: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 237: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 237: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 241: Type name expected
Error E2139 C:\COMPILER\BC55\INCLUDE\winbase.h 241: Declaration missing ;
Error E2303 C:\COMPILER\BC55\INCLUDE\winbase.h 242: Type name expected
Error E2238 C:\COMPILER\BC55\INCLUDE\winbase.h 242: Multiple declaration for
'_PROCESS_INFORMATION::HANDLE'
Error E2344 C:\COMPILER\BC55\INCLUDE\winbase.h 241: Earlier declaration of
'_PROCESS_INFORMATION::HANDLE'
Error E2228 C:\COMPILER\BC55\INCLUDE\winbase.h 241: Too many error or
warning messages
*** 26 errors in Compile ***
what's wrong?
thank you
Morosh
Technical Details
Message-ID:
<421d7eb5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<421ca569@newsgroups.borland.com> <5eep11tneoc09jc1nft5sr6lo4i0q2imm9@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1df6a2e7bf507f9b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Morosh" <morisaab@yahoo.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <421ca569@newsgroups.borland.com> <5eep11tneoc09jc1nft5sr6lo4i0q2imm9@4ax.com> Subject: Re: old functions bioskey(), sound(), nosound(), delay() Date: Thu, 24 Feb 2005 09:12:56 +0200 Lines: 113 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 194.126.21.147 Message-ID: <421d7eb5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109229237 194.126.21.147 (23 Feb 2005 23:13:57 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail