I want search all bluetooth equipment in window xp2, this is my code :
BluetoothAddress[ address_array = new BluetoothAddress[1000];
private Thread search_thread;
private Thread send_thread;
private void button_find_devices_Click(object sender, EventArgs e)
{
this.button_find_devices.Enabled = false;
this.search_thread = new Thread(new ThreadStart(search));
this.search_thread.Start();
}
public delegate void set(string value);
private void settext(string value)
{
this.listBox_devices.Items.Add(value);
}
private void search()
{
//this.listBox_devices.Items.Clear();
set se = new set(settext);
BluetoothClient bc = new BluetoothClient();
BluetoothDeviceInfo[ array = bc.DiscoverDevices();
for (int i = 0; i < array.Length; i++)
{
this.address_array
= array
.DeviceAddress;
se(array
.DeviceName);
}
this.button_find_devices.Enabled = true;
}
but it always report an error , like this
32feet.NET does not support the Bluetooth stack on this device.
who can help me out ?
thank you very much