Problems with UPnPSmartControlPoint

Problems with UPnPSmartControlPoint

I am evaluating the UPnP API and have written a small console app to test it. I am using the UPnPSmartControlPoint object and have added a device handler to receive acknowlegements from the network devices. My handler subroutine fires as expected for each device it finds but the device is not added to the control points device collection. What am I doing wrong? The following is my code. Thanks for any responses.

Imports Intel.UPNP

Module Module1

Dim cp As New UPnPSmartControlPoint

Sub Main()

AddHandler cp.OnAddedDevice, AddressOf doit



End Sub

Sub doit(ByVal sender As Intel.UPNP.UPnPSmartControlPoint, ByVal device As Intel.UPNP.UPnPDevice)

End Sub

End Module

publicaciones de 2 / 0 nuevos
Último envío
Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.