|
-
Feb 9th, 2010, 05:11 AM
#1
Thread Starter
New Member
i want to make syber cafe in c sharp
i want to make syber cafe in c sharp
in visual basic 6 i think you can work with tool its name winsock
but i want to do with c #
thanks
-
Feb 9th, 2010, 11:29 AM
#2
Re: i want to make syber cafe in c sharp
Welcome to the forums. 
See if this helps.
-
Feb 9th, 2010, 06:29 PM
#3
Re: i want to make syber cafe in c sharp
.NET does support COM interop so you can use the old Winsock control if you want, but I'd recommend against it. All the functionality you need is in the .NET Framework. As elsewhere in the Framework though, the "single responsibility principle" has been applied. By that I mean that the functionality previously encapsulated in a single ActiveX control has now been spread over multiple classes, all of which have a single responsibility, i.e. area of functionality. You should look at the System.Net.Sockets namespace, where you'll find the TcpListener, TcpClient and Socket classes. If you search the web you'll find many examples of their use.
Another point to note is that, if I'm not mistaken, that Winsock control is actually part of VB6, so you'll need some sort of VB6 installation to be able to use it. I'm not sure whether the VB6 runtime files would be enough or you'd actually need to install VB6 itself, but I think you'll need to install something extra.
Last edited by jmcilhinney; Feb 9th, 2010 at 06:33 PM.
-
Feb 10th, 2010, 02:23 AM
#4
Thread Starter
New Member
Re: i want to make syber cafe in c sharp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|