t which
allows your application to display progress and cancel any encoding operation:
</p><pre>
Private WithEvents m_cEncoder As cLameEncoder

Private Sub Form_Load()
   Set m_cEncoder = New cLameEncoder
End Sub

Private Sub m_cEncoder_Progress( _
    ByVal samplesDone As Long, _
    ByVal totalSamples As Long, _
    cancel As Boolean)

    ' .. Handle Progress and cancellation here 

End Sub
</pre><p>
Then you set the source WAV file, destination MP3 file and encoding options:
</p><pre>
Private Sub Create