Re: Winsock 6 control in VB.NET



On Mar 24, 10:05 pm, Tom Shelton
<tom_shel...@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
On 2008-03-24, kimiraikkonen <kimiraikkone...@xxxxxxxxx> wrote:





On Mar 24, 9:39 pm, Tom Shelton
<tom_shel...@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
On 2008-03-24, kimiraikkonen <kimiraikkone...@xxxxxxxxx> wrote:

Hi,
As you know there's no mswinsck.ocx ActiveX control in VB.NET 2005 or
08 by default, but it exists in VB6. However i can add this old
control to my VB 2005 toolbox with no problem by extracting from VB6's
cabinets, but when using inside my project, i get some syntax problems
which runs fine in VB6. I do not want to go back VB6.

Is it healthy and supported using mswinsck.ocx Winsock control in
VB.NET projects?

And is System.Net.Sockets the unique alternative for this Winsock
control and is it completely equilavent?

Thanks

You want to use System.Net.Sockets.  The winsock control sucked in VB6,
and it sucks even worse in .NET ;)

--
Tom Shelton

Dear Tom, Thanks for the information. However actually my intention
was to program a small application that consist of 2 parts, server and
client for sending any file over the WAN, not LAN. Do you have a
simple code that demonstrates that on .NET using sockets class?

Thanks

Onur Güzel

Sure...  MS has a fairly good set of examples.  On both sync and async
usage (start here):

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

There are articles off of here, for both server and client usage.
--
Tom Shelton- Hide quoted text -

- Show quoted text -

Thanks, i'll check and there are similar samples in 101 samples page.
I saw some good Winsock 6 samples using mswinsck.ocx but it's hard to
get the working code in .NET environment, beleive. Maybe there's
a .NET wrapper for legacy Winsock 6, even it can be added to .NET
toolbox as ActiveX control, surprise.

Regards
.



Relevant Pages

  • Re: Classes
    ... "Tom Shelton" wrote: ... In VB6 it can be added under Project -> References and viewed in that ... browser without any errors yes. ... can you use it successfully from VB6? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Classes
    ... "Tom Shelton" wrote: ... In VB6 it can be added under Project -> References and viewed in that object ... browser without any errors yes. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Classes
    ... I thought you were Michael! ... "Tom Shelton" wrote: ... browser without any errors yes. ... can you use it successfully from VB6? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Winsock 6 control in VB.NET
    ... but it exists in VB6. ... toolbox as ActiveX control, surprise. ... Private Sub Form1_Load(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem with an ActiveX control
    ... Can you give me some more information about how to "encapsulate the ... quicktime activex control in a VB6 activex control"? ...
    (microsoft.public.office.developer.com.add_ins)

Loading