Solved

Winsock-Handling

Posted on 1998-07-06
1
207 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
ID: 1465019
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
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.

920 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

11 Experts available now in Live!

Get 1:1 Help Now