connection to server in win32

sureshv's Avatar, Join Date: Aug 2007
Light Poster
hi everyone
Iam trying to connect to server in win32 .iam getting exception and application is closing
in these line if( connect (sock,(LPSOCKADDR)&sin, sizeof(SOCKADDR_IN) ) ).
help me regarding this

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It's too little information for any response. The Crash is not because of the function call but the parameter value you pass in the function.