Trouble with socket&bluetooth

Go4Expert Member
29Nov2004,14:32   #1
boris's Avatar
Hi. I have trouble with follow code:
Code:
	
WSADATA wsaData;
WSAStartup(MAKEWORD( 2, 2 ), &wsaData);
SOCKET s = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
Result: s = INVALID_SOCKET, and GetLastError() return 10047 (address family is not supported).

Does anyone have any experience with bluetooth socket in windows???
Ambitious contributor
26Feb2008,17:12   #2
elec.shabnam's Avatar
you can check the list of error messages ,then decide because every error has a specific no.