Visual Basic 2008, Chat ! Urgent help needed

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2008
Posts: 26
Reputation: harryl5 is an unknown quantity at this point 
Solved Threads: 1
harryl5 harryl5 is offline Offline
Light Poster

Visual Basic 2008, Chat ! Urgent help needed

 
0
  #1
Feb 23rd, 2008
Hey people!

I have been using VB2008 since it came out now, and have also used the 2005 version, but I was just wondering, if there is ANY way to create a Chat Application, or any way to create an IM service.
Please help me

Thanks
x
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 44
Reputation: c++ prog is an unknown quantity at this point 
Solved Threads: 1
c++ prog's Avatar
c++ prog c++ prog is offline Offline
Light Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #2
Feb 23rd, 2008
of course there is a way..
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 26
Reputation: harryl5 is an unknown quantity at this point 
Solved Threads: 1
harryl5 harryl5 is offline Offline
Light Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #3
Feb 23rd, 2008
how?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Visual Basic 2008, Chat ! Urgent help needed

 
2
  #4
Feb 23rd, 2008
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 26
Reputation: harryl5 is an unknown quantity at this point 
Solved Threads: 1
harryl5 harryl5 is offline Offline
Light Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #5
Feb 23rd, 2008
thx, but im not eally sure how to fully understand this
i wil giv it a go
any other ideas?
x
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Visual Basic 2008, Chat ! Urgent help needed

 
1
  #6
Feb 23rd, 2008
there are code for this....
sorry if it can't help you.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 26
Reputation: harryl5 is an unknown quantity at this point 
Solved Threads: 1
harryl5 harryl5 is offline Offline
Light Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #7
Feb 23rd, 2008
wel i am sure the code is very useful but I just don't know how to use it
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 172
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #8
Feb 23rd, 2008
to do such thinks you must use sockets

try this

Imports System
Imports System.Net.Sockets
Imports System.IO
Public Class ServerSocket1
Public Shared Sub Main()
Try
Dim status As Boolean = True
Dim servermessage As String = ""
Dim clientmessage As String = ""
Dim tcpListener As New TcpListener(8100)
tcpListener.Start()
Console.WriteLine("Server Started")
Dim socketForClient As Socket = tcpListener.AcceptSocket()
Console.WriteLine("Client Connected")
Dim networkStream As New NetworkStream(socketForClient)
Dim streamwriter As New StreamWriter(networkStream)
Dim streamreader As New StreamReader(networkStream)
While status
If socketForClient.Connected Then
servermessage = streamreader.ReadLine()
Console.WriteLine("Client:" + servermessage)
If (servermessage = "bye") Then
status = False
streamreader.Close()
networkStream.Close()
streamwriter.Close()
Return
End If
Console.Write("Server:")
clientmessage = Console.ReadLine()
streamwriter.WriteLine(clientmessage)
streamwriter.Flush()
End If
End While
streamreader.Close()
networkStream.Close()
streamwriter.Close()
socketForClient.Close()
Console.WriteLine("Exiting")
Catch e As Exception
Console.WriteLine(e.ToString())
End Try
End Sub
End Class

This is one of numerous manners to program with sockets of cahting based applications
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: Visual Basic 2008, Chat ! Urgent help needed

 
1
  #9
Feb 24th, 2008
First of all the link that JX gave was perfect. Harry you should put on some effort to understand how the code works.. Good explanation Jugortha..

Try this link too
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 26
Reputation: harryl5 is an unknown quantity at this point 
Solved Threads: 1
harryl5 harryl5 is offline Offline
Light Poster

Re: Visual Basic 2008, Chat ! Urgent help needed

 
0
  #10
Feb 24th, 2008
oh no , its not that I didnt think it was useful, I really aprichate the help, its just, well Im not the brightest of blubs
It just takes me a little time to understand and work things out, and after taking a good look at it, I have found out how it works, but considering I am only 15, I may not be as experianced as other profesional programmers here, but yes this is very helpful and I thank you.

With VB.NET I am starting to understand more all the time, although, there are a few things that I am highly confuzed with, one of these is 'sockets'
At the moment I am looking in how to make use of sockets.

Thanks anyway x
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC