Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

I am devloping C# WinApp to search and connect nearby bluethooth.
Hence I have downloaded required dll from 32feet.net.
But I am getting below error -
Unable to load DLL 'coredll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)



AND sometimes
The type initializer for 'InTheHand.Net.Sockets.BluetoothClient' threw an exception.


I have below code-

C#
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;
            }

        }
    }
}
Posted
Comments
Richard MacCutchan 7-Dec-13 4:18am    
You should try the people who provide the Bluetooth library for help.

1 solution

Try
P2P(pc to pc) transfer system C4F Project kit
 
Share this answer
 
v2
Comments
Pravinkarne.31 9-Dec-13 0:39am    
You are providing wrong Answers....If you not got my exact quetion..guys please don't attempt b'coz other Expert people will not attempt for answers..
Please don't take this otherway!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900