Ok, so I try using the sndPlaySound to play a WAV file, and no matter what I do it doesn't work. Here's what I did.

First, and most obvious, I declared the function. 'Tis in a module. Hehe, i said "tis". Anyway, there's nothing worng with it, but just to rehash,
VB Code:
  1. Public Declare Function sndPlaySound _
  2.   Lib "winmm.dll" (ByVal lpszSoundName As String, _
  3.   ByVal uFlags As Long) As Long
  4.  
  5. Public Const SND_SYNC = &H0
  6. Public Const SND_ASYNC = &H1
K. So there's what I have down in the module. Here is the code I have to play the sound file:
VB Code:
  1. sndPlaySound "shot1.wav", SND_ASYNC
It's in an If statement, nothing's wrong with the If statement. No matter what I do, whether it be getting rid of that flag or using a different flag, this is what I get:

Can't find DLL entry point sndPlaySound in winmm.dll

So, it doesn't work. What am I doing wrong? Other peoples' projects with sound work, but mine doesn't, and I don't see what's so special about it. HELP!!