I’ve been creating a simple Media Encoder program and it seems to work fine except the following. Can someone tell me why I can’t get an event to fire under OnStateChange? Here’s my code.
Private Sub MyEncoder_OnStateChange(ByVal enumState As WMEncoderLib.WMENC_ENCODER_STATE)
‘even this won’t fire
MyState.Text = "Hello World"
Select Case enumState
Case WMENC_ENCODER_RUNNING
MyState.Text = "Running"
Case WMENC_ENCODER_STOPPED
MyState.Text = "Stopped"
End Select
End Sub
Thanks
Private Sub MyEncoder_OnStateChange(ByVal enumState As WMEncoderLib.WMENC_ENCODER_STATE)
‘even this won’t fire
MyState.Text = "Hello World"
Select Case enumState
Case WMENC_ENCODER_RUNNING
MyState.Text = "Running"
Case WMENC_ENCODER_STOPPED
MyState.Text = "Stopped"
End Select
End Sub
Thanks