connection to server in win32

Light Poster
6Aug2007,18:30   #1
sureshv's Avatar
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

regards
suresh
Go4Expert Founder
6Aug2007,19:46   #2
shabbir's Avatar
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.