Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB Game LAN
Hi,
I have made Tic Tac Toe Game in VB after which an idea struck me to write a code which can make this game playable on LAN . Can anybody help me in this regard ?
 
[edit]SHOUTING removed - OriginalGriff[/edit]
Posted 24-Aug-11 23:10pm
Edited 24-Aug-11 23:58pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Look at the Socket class[^]
 

 
"hey OriginalGriff can u please explain in a bit more detail ... . I'm new to programming ... not able to understand how can I make a Tic Tac Toe Game that can be played on LAN"
 

It's a bit too detailed to go into here - but there is a good tutorial on it here: Sockets in C#[^]
Try to read it, and have a look at the example - it's not that difficult to do, but the article explains the background of why you do what you do, which can help you understand better!
 

 
"I 'm currently using VB 5 ... in which trying to make the game to be played on LAN . So this C# code doesn't help me much Frown | :(
 
VB5! OMG | :OMG:
 
You do realize that is 14 years old? And was replaced 13 years ago?
 
Why, if you are new to programming would you make things that difficult for yourself?
 
Change now:
Assuming your PC will run it, get a copy of Visual Studio Express - VB or C# - it's free, and fully working with only a few bits missing that you probably won't even notice. Microsoft will give you a copy here: http://www.microsoft.com/express[^]
 
By preference, get the C# version and learn that, but there is a VB version if you want it. Then get a book, and start following it!
 
Starting off with VB5 nowadays is like learning to drive a car by hitching a horse to the front of a Ferrari!
  Permalink  
v3
Comments
sagar wasule at 25-Aug-11 4:33am
   
hey OriginalGriff can u please explain in a bit more detail ... . I'm new to programming ... not able to understand how can I make a Tic Tac Toe Game that can be played on LAN
OriginalGriff at 25-Aug-11 4:43am
   
Answer updated
Nithin Sundar at 25-Aug-11 4:45am
   
5 for a good answer.
sagar wasule at 25-Aug-11 5:09am
   
I 'm currently using VB 5 ... in which trying to make the game to be played on LAN . So this C# code doesn't help me much :(
OriginalGriff at 25-Aug-11 5:18am
   
Answer updated.
Simon Bang Terkildsen at 25-Aug-11 5:21am
   
"Starting off with VB5 nowadays is like learning to drive a car by hitching a horse to the front of a Ferrari"
Hahaha +5
Edward Nutting at 25-Aug-11 5:50am
   
When he has changed he may like to have a look at my articles:
Easy To Use Network Gaming Classes - First version has extra explanation.
Fast Networking Library - This is the second version so use this in your actual code.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

In the name of all that is bacon, download vb.net or c#.net and use a current language!
 
You may as well program in something that is used today as opposed to tech equivalent of cuniform.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

I just want to add my voice to those say don't use VB5, it is ancient (in IT terms), was replaced by VB6 and neither is a particularly good language to start with. You will also find newer languages easier to get to grips with.
 
I suggest VB.NET (if you really want to use VB) or C#. If cost is a worry you can use Visual Studio Express Editions[^]. I'd even recommend Java over VB5/VB6 and I'm developed for all my professional career on Microsoft products.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

I just received a telex from 1997 asking for their programming language back. Like the rest of them said - if you want to learn programming, start with what's current and add onto it with whatever comes next. Playing catch-up from a different millennia is dedication, but also an exercise in complete and utter futility.
 
//L
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 25 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100