Solved

Winsock-Handling

Posted on 1998-07-06
1
205 Views
Last Modified: 2013-11-13
I try to establish a TCP/IP-Connection with the VB5-winsock-control.
If the connection fails, my winsock_error-event is called in Windows NT (that's what I want), in Windows 95 I get a runtime-error and my event-handler is ignored. WHY?

(By the way, how can I set then send- and receive-buffer-size?)

Thanx!
0
Comment
Question by:meik
1 Comment
 

Accepted Solution

by:
joe_s earned 100 total points
Comment Utility
I'm using the Catalyst SocketWrench control and I'm not having that problem. I assume you have code in the error event????
I forget the site but Catalyst has a WEB site where you can D/L the control. I'm using the following code, I can bring down the socket server on the remote site and my _LastError event is fired. I've had no problems at all with the Catalyst control.

    Socket1.Connect
   
    If Not Socket1.Connected Then
        msWarning = "Cannot connect to the socket!"
        Display_Warning
        PNL_MSG.Caption = msWarning
        .
        .  
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now