Hi Jeremy

>From memory...

You need MMSystem in your uses clause.

Put a wav file in your project directory, then when you want to play the
sound:

PlaySound('MyWavFileName', hInstance, SND_RESOURCE or SND_SYNC);

Note that you don't put the file extension (.wav) in the file name above.

HTH,

Dave Jollie
Tower NZ IT
09 368 4259
 

-----Original Message-----
From: vss [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 June 2003 9:56AM
To: Multiple recipients of list delphi
Subject: [DUG]: Custom Windows Sounds

Hi All.
I remember a friend showing me that he was able to create custom windows 
sounds that go with the sounds like Windows open, windows Close etc. but 
they are ones you can call create events for, like, oh I dont know, the 
user clicks on a dateedit control or something.
Has anyone else created custom sound events before?


Jeremy

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to