Need help with Winsock

OK...here's a tough one...
I'm trying to prgram a Front-End for a game called Federation.  You can learn about this game at www.ibgames.net.  I'm trying to make a Front-End like FedTerm 32, the standard program that people use.  You can downlaod that program from www.ibgames.net.
WELL...I'm trying to connect to their server "federation.ibgames.net" port 23.  I have done that by using the Winsock control.  The thing that I can't figure out is how to get it to show up in a text box.  I have don't know how to do this, but I'm sure it has something to do with the "DataArrival" event.  And the "GetData" method of the Winsock control.
Please help me, becaseu I'm clueless.  Thanks a lot, and enjoy the 200 points if you can figure this out.
Thanks again,
~Chrono
ChronoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dark_AngelCommented:
Yes, in the Winsock_DataArrival event
do this for an example.

Private Sub Winsock1_DataArrival(ByVal_ bytesTotal As Long)

Dim RecievedData As String
Winsock1.GetData (RecievedData,_ VBString)
Text1.Text = RecievedData
End Sub

Of course there's more to it to that. Like Byte's Recieved, Len you want etc.
But what is above is the Basic's of recieving data and putting it in it's palce.

Let me know if there's more you need to know.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChronoAuthor Commented:
OK...I tried that, but it keeps giving me a "Expected: =" error on the lines that say "Winsock1.GetData (RecievedData,_ VBString)" and "Private Sub Winsock1_DataArrival(ByVal_ bytesTotal As Long)"  I think it's talking about the underscore.  Am I supposed to replace that with something?  Otherwise, wverything else seems fine... please help me out with this...

0
Dark_AngelCommented:
I put the underscore in because it was on multiple line's and it go's on to next line to get the code, just remove the udnerscore alltogether and that example should work.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

ChronoAuthor Commented:
Whenever I get rid of the underscore, it immediately says that it expects a "=".  Any more ideas?
0
Dark_AngelCommented:
remove the '()' aswell where the get data is.  sorry made mistake
0
ChronoAuthor Commented:
Well...that did SOMETHING...it gave me a "ÿýÿý"  I guess I can figure out the rest by myself.  Thanks a lot for your help.  This gave me a HUGE lead on what to do next....
Thanks again,
~Chrono
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.