Can't insert a Winsock Control!

Status
Not open for further replies.

Hornet

Newcomer
Joined
May 1, 2003
Messages
16
Location
Rumst - Belgium
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
 
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
 
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
 
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.
 
No offence, but if you're a complete noob in that area why try to write an irc client?
 
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
 
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.
 
Status
Not open for further replies.
Back
Top