i'd created a game, now thinking of adding background music to it, however i'd tried the codes below..n unsuccessful, anione know what is the mistakes? Thanks a million.
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA"
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
'
' sndPlaySound constants
Global Const SND_SYNC = 0
Global Const SND_ASYNC = 1
Global Const SND_NODEFAULT = 2
Global Const SND_LOOP = 8
Global Const SND_NOSTOP = 16
Then in my form I did call it as:
Call sndPlaySound("c:\AWEful[1](2).wav", 1)