BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

old functions bioskey(), sound(), nosound(), delay()

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Morosh
Guest





PostPosted: Wed Feb 23, 2005 3:47 pm    Post subject: old functions bioskey(), sound(), nosound(), delay() Reply with quote



Hello:
Some time ago I developped a program using the old TurboC, now I'm updating
it to 32 bits version using bcc32 v5.5.
My problem is that my program use functions bioskey(), sound(), nosound(),
delay() that apparently are not supported in version 5.5.
Is there an equivalent to this functions in v5.5 somewhere??
Also is there a document somewhere describing all functions supported by the
command line bcc32, v5.5??
(I was redirected here from another newsgroup)

thank you

Morosh







Back to top
Bob Gonder
Guest





PostPosted: Wed Feb 23, 2005 5:44 pm    Post subject: Re: old functions bioskey(), sound(), nosound(), delay() Reply with quote



Morosh wrote:

Quote:
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.

Quote:
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.

Quote:
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).






Back to top
JF Jolin
Guest





PostPosted: Wed Feb 23, 2005 7:28 pm    Post subject: Re: old functions bioskey(), sound(), nosound(), delay() Reply with quote



Quote:
Hello:
Some time ago I developped a program using the old TurboC, now I'm
updating
it to 32 bits version using bcc32 v5.5.
My problem is that my program use functions bioskey(), sound(), nosound()
,
delay() that apparently are not supported in version 5.5.

delay() has an equivalent with Sleep(). And yes, all others are not
supported any more.

Quote:
Is there an equivalent to this functions in v5.5 somewhere??
Also is there a document somewhere describing all functions supported by
the
command line bcc32, v5.5??

Borland has made extra documentation available. The most helpful files are
in B5STD.ZIP found at
http://www.borland.com/techpubs/bcppbuilder/v5/updates/std.html. That file
is 7.5 MB, but is probably worth the download.

Quote:
(I was redirected here from another newsgroup)

thank you

Morosh


--
JF Jolin


Back to top
Morosh
Guest





PostPosted: Thu Feb 24, 2005 7:12 am    Post subject: Re: old functions bioskey(), sound(), nosound(), delay() Reply with quote


Bob Gonder <notbg (AT) notmindspring (DOT) invalid> wrote

Quote:
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:COMPILERBC55INCLUDEwinbase.h 227: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 227: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 228: Type name expected
Error E2238 C:COMPILERBC55INCLUDEwinbase.h 228: Multiple declaration for
'_OVERLAPPED::ULONG_PTR'
Error E2344 C:COMPILERBC55INCLUDEwinbase.h 227: Earlier declaration of
'_OVERLAPPED::ULONG_PTR'
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 228: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 229: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 229: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 230: Type name expected
Error E2238 C:COMPILERBC55INCLUDEwinbase.h 230: Multiple declaration for
'_OVERLAPPED::DWORD'
Error E2344 C:COMPILERBC55INCLUDEwinbase.h 229: Earlier declaration of
'_OVERLAPPED::DWORD'
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 230: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 231: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 231: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 235: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 235: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 236: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 236: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 237: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 237: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 241: Type name expected
Error E2139 C:COMPILERBC55INCLUDEwinbase.h 241: Declaration missing ;
Error E2303 C:COMPILERBC55INCLUDEwinbase.h 242: Type name expected
Error E2238 C:COMPILERBC55INCLUDEwinbase.h 242: Multiple declaration for
'_PROCESS_INFORMATION::HANDLE'
Error E2344 C:COMPILERBC55INCLUDEwinbase.h 241: Earlier declaration of
'_PROCESS_INFORMATION::HANDLE'
Error E2228 C:COMPILERBC55INCLUDEwinbase.h 241: Too many error or
warning messages
*** 26 errors in Compile ***

what's wrong?


thank you

Morosh




Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Thu Feb 24, 2005 10:33 am    Post subject: Re: old functions bioskey(), sound(), nosound(), delay() Reply with quote

Do not include winbase.h Include windows.h

.. Ed

Quote:
Morosh wrote in message
news:421d7eb5 (AT) newsgroups (DOT) borland.com...



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.