have known exactly what I was looking for.
Z.K.
I think you can use Sockets to connect via Bluetooth;
ws2bth.h ( The header was found in VS2005 )
Sample code;
SOCKET Sock = socket (AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);
if (Sock != INVALID_SOCKET)
{
SOCKADDR_BTH btSocket;
memset (&btSocket, 0, sizeof(btSocket));
btSocket.addressFamily = AF_BT;
btSocket.btAddr = m_btAddress;
btSocket.port = dwPort & 0xff;
UINT uiTimeout = 0x3000;
setsockopt(Sock, SOL_RFCOMM,
SO_BTH_SET_PAGE_TO,(char*)&uiTimeout,sizeof(uiTimeout));
...
}
Hope this might give you some initiative. ( You can find more in MSDN
library ).
Best regards,
pri_sama.
Z.K. wrote:
I have two Bluetooth dongles that attach to a PC; they will not be
attached
at the same time. My problem is that I have never done any Bluetooth
programming and I can't find any real examples on the Internet. All I
really need to do is to query the devices and extract the address and
name
of the device attached to the PC. I was wondering if someone might be
able
to help me with this or knows of a good website or book that I could look
at.
Z.K.