Article View: borland.public.cppbuilder.nativeapi
Article #5226Re: Playing Beep() through speakers
From: tinyabs
Date: Thu, 01 Sep 2005 17:06
Date: Thu, 01 Sep 2005 17:06
18 lines
1570 bytes
1570 bytes
> Thanks, Bob. What I should have mentioned, though, is that I would like
> to use the 'duration' and 'frequency' parameters of Beep() so the user can
> get an audio cue when entering data. The system sounds from MessageBeep()
> are too few in number to be useful in this case.
How about using a console instead of beep?
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
AllocConsole();
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
DWORD dwWrite;
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "Hello world", 11,
&dwWrite, NULL);
}
Technical Details
Message-ID:
<43173554@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1ac045379f8b141d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "tinyabs" <nospam@me.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com> Subject: Re: Playing Beep() through speakers Date: Fri, 2 Sep 2005 01:06:21 +0800 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 NNTP-Posting-Host: 222.165.17.183 Message-ID: <43173554@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125594452 222.165.17.183 (1 Sep 2005 10:07:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail