56
Argus Encoder Family Version 2.6 API Developer’s Guide
FMSampleAppVB
Receiving Events from Filter Manager
The Filter Manager COM object supplies run time events to any client applica-
tion that registers to use them. In Visual Basic this is done by declaring the Fil-
ter Manager object as WithEvents as we have done in the clsFiltermanagerClass
in our sample application. To use the events, simply add event handlers to the
class such as:
' LogEvent - Traps log events from the COM object and writes them to a file.
Private Sub oArgusFilterManager_LogEvent(ByVal code As Long,
ByVal message As String)
tsLogFile.WriteBlankLines (1)
tsLogFile.WriteLine (message)
End Sub