Lanc1988 Posted December 5, 2004 Posted December 5, 2004 (edited) 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.Project1.zip Edited December 6, 2004 by PlausiblyDamp Quote
Administrators PlausiblyDamp Posted December 6, 2004 Administrators Posted December 6, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Lanc1988 Posted December 6, 2004 Author Posted December 6, 2004 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? Quote
Administrators PlausiblyDamp Posted December 7, 2004 Administrators Posted December 7, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Lanc1988 Posted December 7, 2004 Author Posted December 7, 2004 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. Quote
Administrators PlausiblyDamp Posted December 8, 2004 Administrators Posted December 8, 2004 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.... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Lanc1988 Posted December 8, 2004 Author Posted December 8, 2004 Well, I downloaded the project from http://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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.