Einzelnen Beitrag anzeigen

Christian.Ossi

Registriert seit: 23. Mai 2004
Ort: Greußen
91 Beiträge
 
Delphi 2006 Architect
 
#4

Re: Problem mit PlaySound-Befehl

  Alt 20. Apr 2006, 17:57
Delphi-Quellcode:
Var DLLHandle: THandle;

PlaySound(Nil,0,0);
DLLHandle:=LoadLibraryEX(SoundsDLL,0,LOAD_LIBRARY_AS_DATAFILE);
Try
Application.ProcessMessages;
PlaySound(PChar('Intro'),DLLHandle,SND_ASYNC Or SND_MEMORY Or SND_RESOURCE);
Finally
FreeLibrary(DLLHandle);
End;

(SoundsDLL ist eine Konstante mit dem Namen)

Was ist daran falsch?
Es kommt kein Sound? - Er kommt nur wenn ich SND_SYNC nehme - aber das will ich ja nicht.
Christian Rose
© Christian.Ossi
  Mit Zitat antworten Zitat