Article View: borland.public.cppbuilder.nativeapi
Article #5227Re: Playing Beep() through speakers
From: salamander1965
Date: Fri, 02 Sep 2005 00:31
Date: Fri, 02 Sep 2005 00:31
26 lines
2041 bytes
2041 bytes
tinyabs wrote:
> 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);
> }
Since I'm not familiar with 'AllocConsole' and 'WriteConsole' (I'll
look them up) I'm not sure exactly what you mean, but if you're
referring to a text cue on the screen for the user, I'm afraid that
won't work too well.
The idea behind the program is to allow the user to enter codes to
record what he/she sees through a microscope. The beeps are to
provide a cue without requiring the user to take their eyes away from
the scope.
Thanks -- salamander
Technical Details
Message-ID:
<43179cf9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com> <43173554@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 Date: Thu, 01 Sep 2005 20:31:49 -0400 From: salamander1965 <salamander1@verizon.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Playing Beep() through speakers References: <43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com> <43173554@newsgroups.borland.com> In-Reply-To: <43173554@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.240.12.86 Message-ID: <43179cf9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125620985 71.240.12.86 (1 Sep 2005 17:29:45 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail