B
bt
Has anyone been able to connect and transfer notes using the IrDa with
the QuickLink Pen? I've used the following code, but it doesn't work:
Public Function openConnection() As String
Dim irdaDevices() As System.Net.Sockets.IrDADeviceInfo
irdaDevices = irdaClient.DiscoverDevices(10)
If irdaDevices.Length > 0 Then
''get endpoint and connect to IrDA device
Try
Dim endP As New
System.Net.IrDAEndPoint(irdaDevices(0).DeviceID(), "IrDA:IrCOMM")
irdaClient.Connect(endP)
Catch e As Exception
MessageBox.Show(e.Message.ToString & " thrown in
openConnection")
End Try
irStream = irdaClient.GetStream
Return irdaDevices(0).DeviceName().ToString()
Else
Return "No IrDA Devices Found"
End If
End Function
the QuickLink Pen? I've used the following code, but it doesn't work:
Public Function openConnection() As String
Dim irdaDevices() As System.Net.Sockets.IrDADeviceInfo
irdaDevices = irdaClient.DiscoverDevices(10)
If irdaDevices.Length > 0 Then
''get endpoint and connect to IrDA device
Try
Dim endP As New
System.Net.IrDAEndPoint(irdaDevices(0).DeviceID(), "IrDA:IrCOMM")
irdaClient.Connect(endP)
Catch e As Exception
MessageBox.Show(e.Message.ToString & " thrown in
openConnection")
End Try
irStream = irdaClient.GetStream
Return irdaDevices(0).DeviceName().ToString()
Else
Return "No IrDA Devices Found"
End If
End Function