• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Getting BLuetooth device names

Started by faivre, July 27, 2008, 05:49:05 pm

Previous topic - Next topic

faivre

What is a good way to have the bluetooth device name show in a nrDeviceBox after nrBT.Update is called. It seems that Update needs to be called 2 times. Thanks.

Roman Novgorodov

Hello

The nrDeviceBox control automatically refreshes content after TnrBt.Update() call.
Possible you call Update() method when a needed BT adapter is not installed by system.

Please note that, if you are processing WM_DEVICECHAGE system message, you can call TnrBt.WMDeviceChange() method instead the TnrBt.Update().

Roman Novgorodov
DeepSoftware.com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

faivre

Yes, the nrDeviceBox will update. However, if it is the first time a device is found the text in the nrDeviceBox will be empty. The device was found, and a entry is made in nrDeviceBox but it is an empty string -until the next Update. The PCs Bluetooth hardware is installed and recongnized by Windows (XP or Vista - no difference). Using v8.04. Any advise will be helpful. Question: How do I get updates? Thank you. 

Roman Novgorodov

Hello

We can not repeat this problem. Do you use the BTDemo project?

Maybe the TnrBT.DeviceIndex is -1. In this case nrDeviceBox control shows nothing, but drop down list is filled by device names.


If you are registered user you should ask us over email, inform your registration name and date of order and
you will get latest version of product free.

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.