IrDA and WSAStartup

IrDA programmers must call the Windows Sockets WSAStartup function before making any other IrDA function calls.

The following is an example of making a WSAStartup function call for an IrDA application.

WORD        WSAVerReq = MAKEWORD(1,1);
WSADATA     WSAData;

if (WSAStartup(WSAVerReq, &WSAData) != 0)
{
    // wrong winsock DLLs?
}

 

 

Community Additions

ADD
Show: