Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing sounds???????

Status
Not open for further replies.

gnibbles

Programmer
Mar 15, 2000
79
CA
I want to pkay a splash.wav sound on startup is there a straight forward way of doing it

gnibbles
nturpin@excite.com
 
you can use the multimedia control to play the required file. for more info check in MSDN it has some examples.
 

The MCI interface works OK, but it will lock up your app for the time it takes to play your .wav file.

Look in the API Text Viewer for the PlaySound Win32 function. The sound gets played by a separate thread run by the operating system, so your app can continue doing your startup tasks in the background while it distracts the user :)

Chip H.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top