Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 21:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Vb6 : A Simple Winsock Connection !

Discussion on Vb6 : A Simple Winsock Connection ! within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 236
Received Thanks: 17
Vb6 : A Simple Winsock Connection !

I made a little tut for a simple winsock connection
In visual basic 2006 !
So here it comes

Start with opening vb6


Now open Standard EXE


Now look at the right and right mouse click there
And Choose Compoments


Now Scroll down till Microsoft Winsock Control 6.0
And Check it !


And click ok

Now Add 2 off those Winsock things !



Ok Now the fun part starts

Now rename the first one to "WsCon" ( Without the ")
Now rename the second one to "WsServ" ( Without the ")




Now change the port of wsServ to 1566


Now Double Click the form1
And type : wsServ.lisen


Now Let's make a textbox
Dont need pic for that
Make the multiline to True
And remove the text

Now create 2 Command Buttons
the first one with "Connect"
And the second on with "DisConnect"
Now double click the connect button and type
wscon.connect "127.0.0.1", 1566
Now double click the wsCon
And Right Above u'll see Error now go to connect.
Then delete the line below it !
Now type in wsCon_Connect()
txt1.text = text1.text & "Succesfully Connected" &Vbcrlf

Now Close that code
now double click disconnect and type in
wsCon.close
thats all for that now
Now close that code and double click wsServ
U'll see right above error again
Now go to Connection Requested and delete the line below
Type in the Connection Requested now :
If wsServ.state <> sckclosed then
wsServ.close
wsServ.accept requestiD
End if

So now thats done

Now double click the Dissconnect button and type there :
txt1.text = text1.text & "Succesfully DisConnected" &Vbcrlf
This must below to the Wscon.close

Now Start Program and test
GL yaáll !
daniellook is offline  
Reply


Similar Threads Similar Threads
[Request] a Simple Connection/setup Guide for 4267 Source
03/05/2010 - CO2 Private Server - 3 Replies
Okay, So I'm asking if someone could post a simple guide how to get 4267 running. I used search button, and didn't see any guides. Well, I saw one, but I'm having some errors while i'm trying to Pu that dot sql file in Navicat or phpMyAdmin.. some errors about Classes like mm 'Archer', '1', 0'. 5', <--- something like that, but gives me a plenty of errors for some reason. But Yeah, If someone could post a easy and simple guide, I'd appreciate.
[C++] Winsock + Select
12/03/2009 - C/C++ - 13 Replies
I solved this Problem adding a "continue;" at if(FD_ISSET(aSocket, &fdSet)) { AddSocket(accept(aSocket, NULL, NULL)); continue; }
Visual Basic 2006 : A Simple Winsock Connection
04/13/2009 - SRO Guides & Templates - 3 Replies
I made a little tut for a simple winsock connection This tut can be usefull for creating a bot that workes with nuconnector :) In visual basic 2006 ! So here it comes Start with opening vb6 http://img412.imageshack.us/img412/9527/54328939. jpg Now open Standard EXE
winsock in vb.net?
12/29/2007 - Conquer Online 2 - 4 Replies
anyone know how to get winsock into vb.net?ive been googleing for an answer and cant findone. i downloaded oswinsock and still not sure how to use it?? Ive been using vb6 for a while and am using vb 2005 for the first time and this is pissing me off.i read i should use systemcom.net or somthing? just anyone know how i can use winsock in vb.net or explain what i need to do,before i give up on this .net framework and stick with my trusty vb6 if anyone has a simple source proxy in...
vb6 winsock tutorial
10/24/2006 - .NET Languages - 2 Replies
Ich weiß, vb6 ist aaaaaaaalllt und 2005 ist sooooo besser (kann ich auch gleich zu C# gehen), aber fürs erste will ich das noch probieren. Okay, ich suche ein Winsock tutorial was allerdings direkt HEX packets schickt/verarbeitet und nicht im ASCII format, ich hab zwar ein paar Beispiel sources, allerdings versteh ich nicht so recht wie ich das machen soll. Also ne TCP verbindung.



All times are GMT +1. The time now is 21:30.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.