1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Trouble with socket&bluetooth

Discussion in 'C' started by boris, Nov 29, 2004.

  1. boris

    boris New Member

    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). :confused:

    Does anyone have any experience with bluetooth socket in windows???
     
  2. elec.shabnam

    elec.shabnam New Member

    you can check the list of error messages ,then decide because every error has a specific no.
     

Share This Page