Unable to load DLL 'coredll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The type initializer for 'InTheHand.Net.Sockets.BluetoothClient' threw an exception.
using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using InTheHand.Net; using InTheHand.Net.Sockets; using InTheHand.Net.Bluetooth; using InTheHand.Net.Ports; namespace Bluethoot_Connet { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { textBox1.Clear(); BluetoothClient bc = new BluetoothClient(); BluetoothDeviceInfo[] divices = bc.DiscoverDevices(5); for (int i = 0; i < divices.Length; i++) { textBox1.Text = textBox1.Text + Environment.NewLine + "Name : " + divices[i].DeviceName + " Add : " + divices[i].DeviceAddress; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)