Man tilføjer følgende kode til public modul: Declare Function sndPlaySound Lib "WINMM.DLL" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
og så bruger man denne kode på stedet hvor filen skal afspilles: SoundName$ = "C:\lydfil.waw" wFlags% = SND_ASYNC Or SND_NODEFAULT X% = sndPlaySound(SoundName$, wFlags%)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.