我的系统是window xp2
下面是我的代码:
总是报错:32feet.NET does not support the Bluetooth stack on this device
请高手帮忙,多谢
using InTheHand.Net;
using InTheHand.Net.Bluetooth;
using System.Threading;
using InTheHand.Net.Sockets;
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[i] = array[i].DeviceAddress;
se(array[i].DeviceName);
}
this.button_find_devices.Enabled = true;
}
下面是我的代码:
总是报错:32feet.NET does not support the Bluetooth stack on this device
请高手帮忙,多谢
using InTheHand.Net;
using InTheHand.Net.Bluetooth;
using System.Threading;
using InTheHand.Net.Sockets;
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[i] = array[i].DeviceAddress;
se(array[i].DeviceName);
}
this.button_find_devices.Enabled = true;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货