WMEncoder.ErrorState
The ErrorState property retrieves run-time errors for the encoding process.
Syntax
Long = WMEncoder.ErrorState
Parameters
This property takes no parameters.
Property Value
A Long containing the error value.
Remarks
Use this method to retrieve errors that occur while encoding. The OnError method also provides similar functionality. Use the WMEncoder.RunState property to determine if the encoding process has started or stopped.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Load a predefined configuration.
Encoder.Load ("C:\filename.wme")
' Start the encoding process.
Encoder.Start
' Retrieve a run-time error
Dim lError As Long
lError = Encoder.ErrorState
If lError = 123456 Then
' Process the error.
End If
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also