Einzelnen Beitrag anzeigen

Benutzerbild von turboPASCAL
turboPASCAL

Registriert seit: 8. Mai 2005
Ort: Sondershausen
4.274 Beiträge
 
Delphi 6 Personal
 
#2

Re: PlaySound und SndPlaySound

  Alt 10. Sep 2005, 14:35
Zitat von Delphi Hilfe:
The sndPlaySound function plays a waveform sound specified either by a filename or by an entry in the registry or the WIN.INI file. This function offers a subset of the functionality of the PlaySound function; sndPlaySound is being maintained for backward compatibility.
sndPlaySound ist halt etwas älter und aus kompatibilitätsgründen noch vorhanden. Bei der PlaySound function kann man direct ein Recourcenhandle angeben.

Delphi-Quellcode:
// Wavedatei aus Resource laden und abspielen
PlaySound('WaveRes', hInstance, SND_RESOURCE or SND_ASYNC);
Matti
Meine Software-Projekte - Homepage - Grüße vom Rüsselmops -Mops Mopser
  Mit Zitat antworten Zitat