Results 1 to 5 of 5

Thread: [RESOLVED] Terminating Strings??

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    8

    Resolved [RESOLVED] Terminating Strings??

    Hi there,

    I am using VB6 as a server which communicates with a Flash client.
    I am to get them connected successfully, and the Flash Client can send the server data.
    But my problem is trying to send data back to the client. I have done some research and gathered that I need to terminate any data sent to flash with a zero byte.

    Does anyone have any idea how to do this with VB6?

    Thanks.
    Last edited by Hack; Oct 22nd, 2007 at 10:33 AM. Reason: Added RESOLVED to the thread title and green resolved checkmark

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

    Re: Terminating Strings??

    Welcome to the forums.

    How are you sending the data?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    8

    Re: Terminating Strings??

    using a winsock control.

    sock.SendData "Message"

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    8

    Re: Terminating Strings??

    Thanks for all the fantastic replies.
    I found my solution on a forum that wasn't even a Visual Basic forum.

    Solution:
    Code:
    YourString = YourString & Chr(0)

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

    Re: Terminating Strings??

    Thanks for posting the answer anyway. Sorry we weren't more help.

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