Home > Winsock Error > Winsock Error 40006 Wrong Protocol

Winsock Error 40006 Wrong Protocol

Results 1 to 4 of 4 Thread: Run-time error '40006' : Wrong protocol .... <== How this error occurs? Take a look at this and this to see if you can get a clue, but the resolutions there require you have access to the source. –C-Pound Guru Jul 8 '15 In my vb-application I used winsock and timer control. I salute you. http://itechnologysolutionsllc.com/winsock-error/winsock-error-40006.php

Thanks, egl1044...for a most useful & educational experience. 0 Featured Post Find Ransomware Secrets With All-Source Analysis Promoted by Recorded Future Ransomware has become a major concern for organizations; its prevalence Hello guys! No problems here, it works fine. What a guy! 0 Message Author Comment by:John Account2005-09-27 whoah...you going to include the source code for that wrapper?-- http://www.geocities.com/egl1044/UpdaterActiveXexe.zip 0 LVL 29 Overall: Level 29 Visual Basic Classic Discover More

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 current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Code: Private Sub Form_Load() Win.LocalPort = 4999 Win.Listen End Sub Private Sub Command1_Click() Win.Close Win.Listen End Sub Private Sub Win_ConnectionRequest(ByVal requestID As Long) Win.Close Win.Accept requestID End Sub Private Sub Win_DataArrival(ByVal Here is the receiver.

  • Typically when you would run the executable on one user and then switch users it would throw out that error.
  • Join & Ask a Question Need Help in Real-Time?
  • 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) If Number >
  • If you want, you can take a look at: http://www.camcolada.com/UpdateWrapper.zip (of course, the FTP parameters have been changed) 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other
  • Last edited by Chris_F; 06-13-04 at 12:50 AM.
  • Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are
  • index 0): .Protocol = sckTCPProtocol What error are you getting?

Thanks. This is a only guess - I am to just starting with winsock. Overclockers Community Newsletter -- OVC -- Default Mobile Style All times are GMT -5. http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20806695.html?query=download+from+ftp&topics=93#9948491 Or this?

It still wont work. Any other ideas? It just fires the Winsock_close event unexpectedly. have a peek here The Dataarrival event is also soon fired, and then when I try to use the GetData event, it gives me that error 40006: Wrong protocol or connection state for the requested

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 Why? Why is this?Certain port numbers are reserved for specific services. Welcome to the p2p.wrox.com Forums.

In other words, my working folders are like this: C:\CamColada\UpdateWrapper --------- contains the activex exe C:\CamColada\UpdaterNew --------- the other stuff Then it installs to wherever. This way you can run both progams in the development / debug environment and identify where they're getting a problem. Or is there a better way of doing this: : : : Thanks: : : : [red]Good luck![/red]: [blue]Hackman[/blue]: : 0 · Share on Facebook infidel Member Posts: 2,900 February 2005 In your setup program have you made sure that MyDownloader.exe is in the same location as your main Executable that contains the reference to MyDownloader.exe? 0 Message Author Comment by:John

Contact Us - Wrox - Privacy Statement - Top Powered by vBulletin Copyright ©2000 - 2016, Jelsoft Enterprises Ltd. 2013 John Wiley & Sons, Inc. this contact form Home Forum New Posts FAQ Calendar Community Groups Albums Member List Forum Rules & Guidelines Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Who's Online Reviews News JP Please remember to rate all postings. Register Lost Password?

That's not the problem, navstar16--I checked it out, and the difference in internet connection speed isn't a factor--but thanks, anyway. Reply With Quote August 18th, 2004,12:08 PM #5 cjard View Profile View Forum Posts Elite Member Power Poster Join Date Oct 2003 Location .NET2.0 / VS2005 Developer Posts 7,104 would that I'm sorry I can't be much more help, but I'll try to help as much as possible. http://itechnologysolutionsllc.com/winsock-error/winsock-error-code-40006.php Yes it's me again....

Get 1:1 Help Now Advertise Here Enjoyed your answer? Timer1.Enabled = True Timer1.Interval = 1000 'Finally Connect to the ftp settings and Download the file. Reply With Quote Quick Navigation Visual Basic 6 and Earlier Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank

What it does is it enters the remote hostname and port and changes the local port to 0, then connects to it.

Reply With Quote August 18th, 2004,11:15 AM #3 HanneSThEGreaT View Profile View Forum Posts CG Bouncer Power Poster Join Date Jul 2001 Location Sunny South Africa Posts 11,224 Hi! I hate this stupid winsock. You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

Have you any code in the socket error event, and if so what is that telling you? After that, it sends a bunch of data, and my program expects some data to come back. And I cannot figure out for the life of me, why it does this only on some of my computers but not all--they all seem to have the same components, etc. Check This Out so the simplest way is to do what I mentioned above. 0 Message Author Comment by:John Account2005-09-27 Are there other properties that need setting? 0 LVL 29 Overall: Level

Thanks. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 There is a much easier solution to this problem. 1. That's not a good programmingtechnique. Reply With Quote 06-22-04,09:56 AM #5 Krieger View Profile View Forum Posts Member Join Date Jan 2002 Location North of Boston, MA Chris_F, can you upload your code or pm The Connect event is a signal that the connect request has been accepted and the connection is established. : : STATUS: This behavior is by design. : : http://support.microsoft.com/default.aspx?scid=kb;en-us;183987: : ------:

I don't need to call regsvr32 or anything like that, do I? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 Whats LOL. Now compile the activeX.exe STEP 2.

Follow us