S
Sai
Hi all,
I am using the Desktop.Communication library available here :
http://www.opennetcf.org/communication.asp
It's all good except for one problem that does not seem to go away.
I cannot get the event associated with the delegate RAPIConnectedHandler to
fire.
Here is my vb code which calls into the library.
Dim WithEvents objrapi As OpenNETCF.Desktop.Communication.RAPI
objrapi = New OpenNETCF.Desktop.Communication.RAPI(false)
'Other stuff
Private Sub objrapi_RAPIConnected() Handles objrapi.RAPIConnected
MessageBox.Show("Connected")
End Sub
The "Connected" message never appears. I tried changing the constructor
param to true but could not get it work. I need the event based mechanism to
be able to time-out in case the device is not in its cradle. Synchronously
calling the library (with the param=true), causes the code to wait
indefinitely on the constructor because CeRapiInit does not return if the
device is not in the cradle.
I'd greatly appreciate any help. Thanks
Sai
I am using the Desktop.Communication library available here :
http://www.opennetcf.org/communication.asp
It's all good except for one problem that does not seem to go away.
I cannot get the event associated with the delegate RAPIConnectedHandler to
fire.
Here is my vb code which calls into the library.
Dim WithEvents objrapi As OpenNETCF.Desktop.Communication.RAPI
objrapi = New OpenNETCF.Desktop.Communication.RAPI(false)
'Other stuff
Private Sub objrapi_RAPIConnected() Handles objrapi.RAPIConnected
MessageBox.Show("Connected")
End Sub
The "Connected" message never appears. I tried changing the constructor
param to true but could not get it work. I need the event based mechanism to
be able to time-out in case the device is not in its cradle. Synchronously
calling the library (with the param=true), causes the code to wait
indefinitely on the constructor because CeRapiInit does not return if the
device is not in the cradle.
I'd greatly appreciate any help. Thanks
Sai