Results 1 to 10 of 10

Thread: i cant hear you, my aid broke

  1. #1

    Thread Starter
    Addicted Member stealmysanity's Avatar
    Join Date
    Oct 2001
    Location
    THELANDOFRULERS
    Posts
    165

    Wink i cant hear you, my aid broke

    Help my music doesnt play

    IN THE MODULE:
    Public strName As String

    Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

    Public Const SND_ASYNC = &H1 ' play asynchronously

    IN FORM

    Private Sub Cmdhm_Click()
    sWavFile = "C:\westwood\gokukame1.wav"
    x = sndPlaySound(sWaveFile, SND_ASYNC)


    IT DOESNT PLAY, PLEASE HELP
    everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!

  2. #2
    Does it give you a ding (or the Windows default beep) to tell you that the file doesn't exist?

  3. #3
    BTW, here's an example in case you made a typo : http://www.vbforums.com/showthread.p...t=sndplaysound

  4. #4

    Thread Starter
    Addicted Member stealmysanity's Avatar
    Join Date
    Oct 2001
    Location
    THELANDOFRULERS
    Posts
    165
    it goes ding when i click it, but the file is there
    everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!

  5. #5
    Are you sure? Do this: Msgbox Dir("C:\westwood\gokukame1.wav"). It should say "gokukame1.wav"; does it?

  6. #6

    Thread Starter
    Addicted Member stealmysanity's Avatar
    Join Date
    Oct 2001
    Location
    THELANDOFRULERS
    Posts
    165

    yes

    gokukame1.wav in the westwood directory on the C drive ne ideas?
    everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!

  7. #7

    Thread Starter
    Addicted Member stealmysanity's Avatar
    Join Date
    Oct 2001
    Location
    THELANDOFRULERS
    Posts
    165

    im just

    a stupid wanna be prgrammer dum de dum
    I wanna learn VB dum de dum
    I try projects that are too tough Dum de dum
    I have no friends dum de dum
    I enjoy milking cows dum de dum
    I really need help dum de dum
    help me play that .wav file dum de dum
    HEEEEEEELP
    everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!

  8. #8
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375

    Re: im just

    Originally posted by stealmysanity
    a stupid wanna be prgrammer dum de dum
    I wanna learn VB dum de dum
    I try projects that are too tough Dum de dum
    I have no friends dum de dum
    I enjoy milking cows dum de dum
    I really need help dum de dum
    help me play that .wav file dum de dum
    HEEEEEEELP
    It is a generally accepted fact that being stoned hinders Programming ability.
    You just proved that sig advertisements work.

  9. #9

    Re: Re: im just

    Originally posted by nishantp
    It is a generally accepted fact that being stoned hinders Programming ability.
    What a help, Nishant.

    Just for fun, what happens when you compile your project to an EXE and try to run it?

  10. #10

    Thread Starter
    Addicted Member stealmysanity's Avatar
    Join Date
    Oct 2001
    Location
    THELANDOFRULERS
    Posts
    165

    hahelp

    i still neeed help, havent tryed to compile...
    dum de dum dum dum
    everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width