Tema: FAQ's de VB6
Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/08/2004, 14:32
Avatar de GeoAvila
GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 4 meses
Puntos: 53
Hacer sonar un fichero Wav o Midi

pregunta:
¿como Hacer sonar un fichero Wav o Midi?
respuesta:
Insertar el siguiente código en un módulo:

Código:
 Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrCommand As String) As Long
'Insertar un botón en el formulario y escribir el siguiente código:
Private Sub Command1_Click()
	iResult = mciExecute("Play c:\windows\ringin.wav")
End Sub
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila