amit1080
Nov 11th, 1999, 12:12 AM
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
Yonatan
Nov 11th, 1999, 12:57 AM
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: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)