Accessing Events within a VB DLL
Private tcpLog as IPPORT
The 'Dim WithEvents' in VB 5 or higher can only be called from a Class module (*.cls) and once called,
you then have the events available within the in-process server as shown below:
'create instance of object for early binding
Private WithEvents tcpLog As IPPort
Then to access the event:
Private Sub tcpLog_DataIn(Text As String, EOL As Integer)
myRetVal = Text
End Sub
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at kb@nsoftware.com.