Whats wrong with my irc client?

Lanc1988

Contributor
Joined
Nov 27, 2003
Messages
508
I downloaded a tutorial project from winsockvb.com and when I run it I dont see any messages people send to me or that i send.

I have done some tests by getting on the same channel using mIRC and my irc client, here is what happened:

I send messages from my irc client and i can see them on mIRC but I don't see that i sent them on my irc client, also if i send a message on mIRC it won't show up on my irc client.. so i guess its just one little mistake somewhere in the code or a missing line of code.

I posted my project so you can download and see if you see the problem. Thanks.
 

Attachments

Last edited by a moderator:
Is the data arrived event being called?
Personally I would avoid using the winsock control in a .Net project anyway - you are better off looking at the classes in System.Net and System.Net.Sockets instead.
 
well im not that good at coding an irc chat room.. so im just trying to get a very basic working chatroom right now.

do you know whats wrong or how I can fix what I have now?
 
If you put a breakpoint on the sckIRC_DataArrival method does the breakpoint get reached? If so step through the event and see if sckIRC.GetData is actually getting any data back.
 
I have tried that and it is showing that it is blank. If you could download my project I posted maybe you might see whats missing that is stopping it from displaying things that are sent and recieved.
 
I don't have the winsock control installed on this pc so I can't test the above project, you may want to check the documentation (or msdn) for the control though to make sure you are using the event and the sckIRC.GetData method correctly....
 
Well, I downloaded the project from www.winsockvb.com and I guess it was converted to .net so maybe there is incorrect code because of that.. so if someone who can test my project could take a look at it to see if you see anything wrong with the "DataArrival" event. Thanks.
 
Back
Top