PDA

Click to See Complete Forum and Search --> : stupid winsock problem


fishwack
Jul 14th, 2000, 05:06 PM
My problem -
ok im using the winsock control version 6.0.8 to comunicate between to apps in vb. Both the client and the server portion are going to be run on nt. When i test them out and connected with them on my own computer they work fine, but if i put the client or server on a different comptuer on our network the client will crash. All that is happening is that the error event of the clients winsock control is firing and so the apps wont connect. How do i find out what this error is? any one have any ideas about what it could be? do i need to get an updated version of mswinsck.ocx?

Clunietp
Jul 15th, 2000, 11:41 AM
Hi Fish

to display the winsock error, handle the Error event:

Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, _
ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, _
ByVal HelpContext As Long, CancelDisplay As Boolean)

MsgBox Description
End Sub


That can help you track down your error.

The Winsock control was also updated in Service Pack 4, so you might want to apply that as well.