Results 1 to 5 of 5

Thread: Problem with winsock conversion in vb2005

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    Problem with winsock conversion in vb2005

    I am going mad.
    Several day I am trying to convert the vb6 winsock code into vb2005 but now i am stuc. Can somebody help me with this.
    I am trying to send commands to a Net PLC and instruct a machine to run
    In VB6 the code is like this

    Code:
    Winsock1.RemoteHost = txtIP.Text
    Winsock1.RemotePort = 10001 			
    Winsock1.Connect()
    
    Winsock1.SendData("@" & NO & DoTal & vbCr)
    Winsock1.SendData("$" & NO & "6" & vbCr)
    How do I do this in VB2005
    can somebody give me a hand on this.
    Would be verry gratefull
    Last edited by Compyfreak; Dec 13th, 2007 at 03:50 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with winsock conversion in vb2005

    Welcome to the forums.

    Have a look at this.

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    Re: Problem with winsock conversion in vb2005

    Bigg Thanks for welkoming me on the forum.
    I gone take a look at this code.

    Thank you for your quick answer

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with winsock conversion in vb2005

    No problem. When I was searching I found a few examples, but the one I posted looked the most promising.

  5. #5

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    Re: Problem with winsock conversion in vb2005

    is there a way to do this with the system.net in VB2005?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width