Results 1 to 2 of 2

Thread: how do you byte stuff characters

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    3

    Post

    I am creating an email server and I wanted to know how to byte stuff an character and what is the meaning of this.
    Thank You

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    What is the meaning of this? This is a C++ keyword.

    Seriously:

    I don't know what you mean... Do you want to put a string in an array of bytes? If so, you can use CopyMemory:

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSrc As Any, ByVal cbLength As Long)

    Private Sub ByteStuffAString(ByVal sString As String, ByRef baByteArray() As Byte)
    ReDim baByteArray(0 To Len(sString) - 1)
    Call CopyMemory(baByteArray(0), ByVal sString, Len(sString))
    End Sub


    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



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