Re: No Beep!




"Nicholas Sherlock" <N.sherlock@xxxxxxxxx> wrote in message
news:e07hri$sk1$1@xxxxxxxxxxxxxxxxxx
Bob Richardson wrote:
procedure TForm1.Button1Click(Sender: TObject);
begin
MessageBeep(MB_ICONASTERISK);
end;

Is it possible that Delphi is looking in the wrong directory for these
WAV files?

No, Delphi doesn't do anything to play the sound. All of the Delphi code
involved is that single line, the rest is up to the Windows API. Which
Windows version are you using?

WinXP home edition, updated 'automatically' by MS.

This works:

Windows.Beep(Freq, Duration)

but I'd really like to use the API method.


.


Quantcast