1 Replies - 457 Views - Last Post: 03 February 2013 - 06:12 AM Rate Topic: -----

#1 devdevendra.bisht  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-February 13

create sound from system in vb6

Posted 03 February 2013 - 02:48 AM

i cannot start it..
i no where is its starting
Is This A Good Question/Topic? 0
  • +

Replies To: create sound from system in vb6

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3197
  • View blog
  • Posts: 10,729
  • Joined: 12-December 12

Re: create sound from system in vb6

Posted 03 February 2013 - 06:12 AM

What?

Quote

You can use the "sndPlaySound" Win32API to play a WAV file, i.e.

'----------------------------------------------------------
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1 ' play asynchronously

Private Sub Form_Load()
Call sndPlaySound("C:\Windows\Media\Explode.wav", SND_ASYNC)
End Sub
'----------------------------------------------------------

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1