Oppure

Loading
18/09/10 7:07
uelfox
Ciao raga, sto cercando di realizzare un codice, che mi rilevi i dispositivi Bluetooth, presenti nelle vicinanze.
Ho fatto delle ricerche in google, è ho isolato la libreria:
"InTheHand.net" di 32feet.net

Ho cercato di buttare giù un codice, ma non funziona;
Eccone uno stralcio:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InTheHand.Net.Sockets;

namespace ScanBlu
{
    public partial class Setting_p11 : UserControl
    {
        public Setting_p11()
        {
            int Trovati;
            BluetoothClient bc;
            BluetoothDeviceInfo[] array;
            string[] Dispositivi=new string[99];

            InitializeComponent();

            bc = new BluetoothClient();
            array = bc.DiscoverDevices();
            Trovati = array.Length;
            for (int i = 0; i < Trovati; i++)
            {
                Dispositivi[i]=array[i].DeviceName;
            }
        }
    }
}


Chi mi sa dare qualche aiuto?
:-|
Ultima modifica effettuata da uelfox 18/09/10 7:11
aaa
18/09/10 7:13
HeDo

che errore da?
aaa
18/09/10 7:15
uelfox
Non da nessun errore, non rileva nessun dispositivo....
aaa