
Translating PLAY in QuickBasic to VB-code
Hej,
det gar att skriva en Modul som innerhaller:
Declare Funtion sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA"
(ByVal LpszSoundName as String, Byval uFlags as Long) as Long
sen i en Subroutine ( _Cick eller vad som helst) skriv:
x=sndPlaySound ("xyz.wav",0)
Lycka till!
GSchupp
Quote:
>I have produced rather many programs written in Quick Basic.
>To pay the users attention to certain events I have used the
>command PLAY or SOUND.
>I have been looking for some corresponding commands in
>Visual Basic but without any results. I should be grateful
>if anyone could give me some tips. The very best would be if
>I could get a code example for a SUB Procedure generating a
>tone or playing a sound file.
>Lars E