I have created an app in which I want a thread to handle listen-UDP separately and make me a buffer, but when I try to pass it to thread it says there are compatibility issu
Try below code that might help you..
DWORD start(LPVOID lpdwThreadParam) { buffer_t *buffer = (buffer_t *)lpdwThreadParam; //Type cast your argument here SOCKET s; struct sockaddr_in server, si_other; int slen, recv_len; char buf[BUFLEN]; WSADATA wsa; ... }