I have a bug in a project.using mswinsck.ocx. when I make a connection to a server everything is fine, but when I type ‘bye’ or ‘quit’ to end the session on the server, my project still says connected and if I attempt to send another command before I ‘reset ‘ the app and set the value in the‘connection ‘ property of the ocx to false, it throws out a ‘wrong protocol or connection state ‘ error and crashes.
Does anyone know how I could check for a connection and reset the connection state property of this ocx to zero, before the data attempts to send? it checks this property before it sends now.




Reply With Quote