Results 1 to 6 of 6

Thread: Sending a string over with winsock

  1. #1

    Thread Starter
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628

    Question Sending a string over with winsock

    how do i send a string to another computer with winsock? I'm making a chat program i reeealy need this code! thanx in advance

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    <removed by admin>

  3. #3

    Thread Starter
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    The problem is when I do:

    Winsock.Sendata "Blah"

    and receive the data, and try to display it in a text box, it becomes blank. why?

  4. #4
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    How are you receiving the data? Are you connecting first? Do you get any errors?
    <removed by admin>

  5. #5
    Stiletto
    Guest
    VB Code:
    1. Dim sIncoming as string
    2. Winsock1.GetData sIncoming
    3. MsgBox sIncoming

  6. #6
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Do you have that in the DataArrival event?
    <removed by admin>

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