I have implemented the code regarding named pipes that I found at
The problem is that I'm not sure where to go from there. That example simply fills a bytearray with numbers and sends it. I want to actually pass text information. I've tried this to fill the bytearray:
Dim MyString As String = "This is a message from my pipe server"
Dim AE As New System.Text.ASCIIEncoding
Dim ByteArray As Byte() = AE.GetBytes(MyString)
Buffer = ByteArray
On the other end I get a set of numbers, which I have tried to convert from the byte format back into the characters. Unfortunately, this doesn't seem to work and the return does not resemble anything I originally sent. And it seems that regardless of what I am trying to send, these numbers seem very consistent, with one or two occasionally being different.
Obviously I'm missing some incredibly important point about how named pipes really works and what needs to be done on the client end to interpret the message. Any help? Check the link I refer to above to see the code I am using.
The problem is that I'm not sure where to go from there. That example simply fills a bytearray with numbers and sends it. I want to actually pass text information. I've tried this to fill the bytearray:
Dim MyString As String = "This is a message from my pipe server"
Dim AE As New System.Text.ASCIIEncoding
Dim ByteArray As Byte() = AE.GetBytes(MyString)
Buffer = ByteArray
On the other end I get a set of numbers, which I have tried to convert from the byte format back into the characters. Unfortunately, this doesn't seem to work and the return does not resemble anything I originally sent. And it seems that regardless of what I am trying to send, these numbers seem very consistent, with one or two occasionally being different.
Obviously I'm missing some incredibly important point about how named pipes really works and what needs to be done on the client end to interpret the message. Any help? Check the link I refer to above to see the code I am using.