Play .wav in VB4-32bit without MCI control 
Author Message
 Play .wav in VB4-32bit without MCI control

How do i play a wav file in vb4 32 bit without using the MCI
control ?


Sat, 23 May 1998 03:00:00 GMT  
 Play .wav in VB4-32bit without MCI control


>How do i play a wav file in vb4 32 bit without using the MCI
>control ?

Try this:
In the general declarations:

Private Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, ByVal _
lpstrReturnString As String, ByVal uReturnLength As Long, ByVal  _
hwndCallback As Long) As Long


Private Sub Command1_Click()
Dim result As Long
     result = mciSendString("Play C:\windows\ringout.wav", "", 0, 0)
end sub

Thats it.

        Chris Thorson

Tue, 26 May 1998 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Play a .wav without MCI control.......sndPlaySound ??

2. Q: using MCI control to play .wav file in a command button

3. Q: Playing MIDI-files without MCI control

4. How to play and control a MIDI file without MCI OCX

5. Is there any way to play a wav and avi without having teh ocx multimedia controls

6. Play Wav Files without Custom Controls ???

7. MCI and playing *.wav files?

8. Playing WAV files with MCI.MMControl

9. Play MIDI without MCI!

10. playing sounds without using MCI

11. How best to play a WAV file at a variable volume without affecting system volume

12. Play sound without .wav..


Powered by phpBB® Forum Software