- 1). Click the Windows "Start" button and select "All Programs." Click "Microsoft Visual Basic," then click "Visual Basic 6" to open the software. Click the "Open" toolbar icon to open your VB6 project.
- 2). Double-click the VB form you want to use for your WAV file information. After the form loads in the designer, right-click any part of the form and select "View Code."
- 3). Create a header class variable. The class variable lets you use the class object's properties, so you can identify WAV file information. The following code creates the variable:
Dim fileinfo As FileHeader - 4). Open the WAV file. The following code opens the WAV file and loads the header information:
Dim file As File
file = file.Open("c:\music.wav") - 5). View the WAV header information. The following code displays the size information for the WAV file:
MsgBox "WAV size is: " & fileinfo.lFormatLength = Len(file)
SHARE