What it does is it enters the remote hostname and port and changes the local port to 0, then connects to it. Join & Write a Comment Already a member? It is using the MS Internet Transfer Control to send a sql string from the client to the server. Open up your Main project and add the reference to your compiled ActiveX.exe 'Add the following code to Form_Load event Private Sub Form_Load() On Error GoTo ErrEXE Source
I hate this stupid winsock. Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search Beginning VB 6 For coders who are new to Visual Basic, working in VB Does it download the file? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 You can try : camcolada/updates/Camcolada.exe 0 Message 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 Visit Website
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 can we eliminate the firewall or point to it as the culprit. Now, Winsock1(0) can keep listening while you Load Winsock1(n) to .Accept a ConnectionRequest. Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies
That would explain why you never get a Connect event - it appears that you're telling the server socket to close, which would make the .Accept meaningless (if not an outright Code: Private Sub Form_Load() Win.RemotePort = 4999 Win.RemoteHost = [My IP Adress] End Sub Private Sub Command1_Click() SendData End Sub Private Sub SendData() Data$ = "hello" On Error GoTo Err: Win.Close RESOLUTIONThe code must wait until the Connect event is fired before attempting to call the SendData or GetData methods. I'm going to try it on a few other machines...to see how it works.
Possibly 5.0 While latebinding is more version compatible if the machine is not up to date then you will get this error 0 Message Author Comment by:John Account2005-09-28 It started Why does this happen? I so how do i make it ask for the users permission to grant access for the required port? JP Please remember to rate all postings.
Are you serious???--I sure hope so!!! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Accepted Solution by:nffvrxqgrcfqvvc2005-09-27 'Alright give this a shot. website here Suggested Solutions Title # Comments Views Activity Access 2016 VB code 9 73 60d Cannot enter table caption text in Word protected document 6 55 60d Access 2003, my txt file another thing that stuffed me around was the Tabindex Property So I ended up making the connect button's TabIndex 0 Thanks for all your help! After that, it sends a bunch of data, and my program expects some data to come back.
You sure do know your stuff! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-10-02 Hi, JohnLucio, You might want to consider this contact form Results 1 to 4 of 4 Thread: Run-time error '40006' : Wrong protocol .... <== How this error occurs? View our list of code downloads. This video goes into detail on the Threads, Sampler, and Profiler tabs.
I appreciate it very much. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 Glad I could help, Hope it works out How does it work? All you need to do in the client is change the remote host to have your computer's IP address. http://gmailpush.com/visual-basic/visual-basic-runtime-error-365.html As you finish projects in Quip, the work remains, easily accessible to all team members, new and old. - Increase transparency - Onboard new hires faster - Access from mobile/offline Try
In turn the server processes the sql statement and sends the results back to the client. However i get the following error: Run-time error '40006' Wrong protocol or connection state for the requested transaction or request. Here is the receiver.
Thank you very VERY much, egl1044. I so how do i make it ask for the users permission to grant access for the required port? Have you any code in the socket error event, and if so what is that telling you? By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests.
In my vb-application I used winsock and timer control. Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 18th, 2004,09:50 AM #1 HanneSThEGreaT View This is a only guess - I am to just starting with winsock. Check This Out I don't know a lot about firewalls, but have you tried running on two computers inside the firewall - i.e.
I got this error when I was sending data to a close connection. However, if I remember correctly the server should be listening for the client, you use the property winsock.listen.
© Copyright 2017 gmailpush.com. All rights reserved.