# Re: MP3

Posted by Windows NT user on January 07, 1999 at 21:35:00:

In Reply to: MP3 posted by Jackie on January 05, 1999 at 03:26:04:

: Can vb6 play mp3 file???
: how?

很容易,只要用Microsoft Mutimedia Control
方法如下:
Private Sub Form_Load()
MMControl1.DeviceType = "MpegVideo" '不是MpegAudio
End Sub
sub play(filepath as string)
MMcontrol1.command = "close"
MMcontrol1.FileName = string
MMcontrol1.command = "open"
MMcontrol1.command = "play"
end sub
private sub form1_unload()
mmcontrol1.command="close" '很重要!!!!
end sub

Follow Ups: