There are some problems with your EditStreamCallback Function
The second parameter you have defined as ByVal Byte.
It is a long pointer to a byte array so that you should either define it as
ByVal pbBuff as Long
or
pbBuff() as Byte
If you choose the second option you can form your string like this
Try thatVB Code:
dim i as integer, myStr as String myStr="" for i=0 to cb-1 myStr = myStr & chr(pbBuff(i)) next i




Reply With Quote