Hornet Posted May 1, 2003 Posted May 1, 2003 Look, I have a big problem. I have here Windows XP Professional with Visual Studio .NET Professional Enterprise Architect 2003 on it. Now, I am making an IRC-client and I need to have a Winsock Control on it. When I do ctrl+T, I get the components window, where I normally can insert a Winsock Control into my toolbox. But when I insert him my Environment says that I dont have the right license to use that Control. What's wrong and how can I fix that problem? Greetz, Hornet
Guest mutant Posted May 1, 2003 Posted May 1, 2003 There is a whole .NET namespace of sockets which should be used instead of WinSock control in .NET. Check out those, both contain a lot of useful things: System.Net System.Net.Sockets
Hornet Posted May 1, 2003 Author Posted May 1, 2003 Good, but can you give me an example of a simple program that uses those Imports and that makes connection with an IRC server. I am a newbie in those things like using Sockets. In VB 6, I normally used a Winsock Control so that I easy could connect to a server or something. How must I make a connection with those Imports, I dont know the right functions of it. :o Greetz, Hornet
*Gurus* divil Posted May 2, 2003 *Gurus* Posted May 2, 2003 There are plenty of samples out there (even some in the framework sdk) of using the sockets namespace to connect to a host and send data. MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Hornet Posted May 2, 2003 Author Posted May 2, 2003 I'm a complete noob in that sort of coding. Can someone give a sample please. I need it for my client. Greetz, Hornet
*Gurus* divil Posted May 2, 2003 *Gurus* Posted May 2, 2003 No offence, but if you're a complete noob in that area why try to write an irc client? MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Hornet Posted May 2, 2003 Author Posted May 2, 2003 Oke, maybee it's to difficult for me, but I wanna try it. So I only need a Winsock Control on my form. How can I do that? Can I download that socket from a website or something? Greetz, Hornet
*Gurus* divil Posted May 2, 2003 *Gurus* Posted May 2, 2003 That control is not free to use. You get a license to use it if you purchase Visual Studio 6, but I wouldn't be surprised if you get unexpected results trying to use it from a .NET environment. You should learn to use the Socket class instead. MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts