jactionscripters.com

Home > Winsock Error > Winsock Error 40006 Wrong Protocol

Winsock Error 40006 Wrong Protocol

To start viewing messages, select the forum that you want to visit from the selection below. Join and Comment By clicking you are agreeing to Experts Exchange's Terms of Use. Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Runtime error 40006 - After connection established Hi I have set up a client server application, where the client connects to Once again I'm not expert at this so i could be wrong but im pretty sure thats why.[code]If Userclue > 0 thenmsgbox("Woohoo that Makes one")end if[/code]So... news

I'm stuck big time, egl1044. Why do dealers in Vegas check ID even if I look older than 25? How could I explore to find the reason caused the error? What error is it about? http://www.vbforums.com/showthread.php?132636-Run-time-error-40006-Wrong-protocol-lt-How-this-error-occurs

But this error occurs unexpectially. If you don't follow these steps then you will get an error "file in use or something similiar, also if you don't remove the reference and click save project as, you Login. Welcome to OCF!

  • that it is blocked by a firewall.
  • Or is there a better way of doing thisThanks 0 · Share on Facebook Comments HackmanC Member Posts: 441 February 2005 If you call the SendData method in the WinSock control
  • Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page...
  • index 0): .Protocol = sckTCPProtocol What error are you getting?
  • HTH JP Please remember to rate all postings.
  • JP Please remember to rate all postings.

Running my program overnight through the VB debug "the play icon" mode highlighted my "Winsock1.GetData temp" under the sub of data arrival. Okay. More details about when it started happening. It sometimes fixes some of the stupid winsock errors. 0 Message Author Comment by:John Account2005-09-26 Thanks, cool12399, but it didn't work.

You may have to register or Login before you can post: click the register link above to proceed. Is it required that I upgrade to Sierra Generate antsy permutations Oracle flashback query syntax - all tables to same timestamp Securing a LAN that has multiple exposed external Cat 6 How this error occurs? Code Code: Win.SendData "block" Error Code: Run-Time Error 40006 - Wrong protocol or connection state for the requested tranaction or request.

more hot questions question feed lang-vb about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation The Connect method in Visual Basic is asynchronous and is more like a request to connect to the Winsock port. I so how do i make it ask for the users permission to grant access for the required port? MyUpdates.FTPConnect MyUpdates.FTPDownload End If End Sub Private Sub Form_Load() Set MyUpdates = New DownloadUpdates End Sub Private Sub Timer1_Timer() 'If isDownloadComplete Returns True then downloading is complete. 'Otherwise returns

I hope you understand. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 Alright. Since we are creating a thread microsoft recommends that you end all applications with End and not Unload Me 0 Message Author Comment by:John Account2005-09-27 Thanks for sharing. Looks like I might just have to come up with another way to skin this cat...unless one of you can help me figure out how to do this utilizing the established It just fires the Winsock_close event unexpectedly.

Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? http://jactionscripters.com/winsock-error/winsock-error-288.php I renamed Winsock as Win. HannesTheReleivedAndHappy All my Articles Hannes Reply With Quote August 19th, 2004,06:46 AM #10 jp140768 View Profile View Forum Posts Member + Join Date Jun 2002 Location Clane, Ireland Posts 766 You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions.

Forgot your password? Suggested Solutions Title # Comments Views Activity Link a textbox in excel to a cell with more than 255 characters. 5 38 63d add text to end of existing text in That's the simplest way to allow multiple clients.Here is the most trivial Client I can think of:[code]Private Sub Form_Load() Winsock1.RemoteHost = "localhost" Winsock1.RemotePort = 80 Call Winsock1.Connect End SubPrivate Sub Winsock1_Connect() More about the author I created a small chat program using WinSock.

http://support.microsoft.com/default.aspx?scid=kb;en-us;183987------: I had a small doubt about Winsock! Disconnecting..." Sock.Close: sock_close End If Error: MsgBox "An error has occured during data arrival.", vbCritical, "Data arrival error" End Sub It doesn't work!! Reply With Quote August 19th, 2004,01:26 AM #7 HanneSThEGreaT View Profile View Forum Posts CG Bouncer Power Poster Join Date Jul 2001 Location Sunny South Africa Posts 11,224 Morning!

thanx for the reply!

To start viewing messages, select the forum that you want to visit from the selection below. It looks like you're new here. Join our community for more solutions or to ask questions. To start viewing messages, select the forum that you want to visit from the selection below.

I'm still bothered by that Winsock.Close in the server. The video will also teach the user how to pass data to a function and have the function return data back for further processing. You need to remove the reference to the activex.exe in your test project, and then click File,Save Project as.. click site This has been a great learning experience for me!! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 There are only certain

And set timer to run every 5 minute. Browse other questions tagged vb6 or ask your own question. Get 1:1 Help Now Advertise Here Enjoyed your answer?