Write artist, song name, title and more in your mp3 files. How to use in VB 5.0 ! 1) Insert OCX in VB under PROJECT / COMPONENTS and a “i” symbol appears in the components window 2) For the first step you can use a COMMAND button with the following two lines Private Sub Command1_Click() Dim res As Long
res = Mp3Info1.Open(“c:\song.mp3”) ‘ “c:\song.mp3” is the name of the mp3 file
Mp3Info1.GetLayerName
If (Mp3Info1.HasTag =0) Then msgbox = Mp3Info1.Artist ‘ res=2 / mp3 file has tag End Sub 3) That’s all ! Now you can easy read and write mp3 tags 4) The OCX in the root work with all Windows 95 and NT 4 version. For the ActiveX version you need a Windows update ( MFC 4.2 ). You find a demo source for Visual Basic 5.0 SP3 in the directory VB. |