Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Named Pips

Status
Not open for further replies.

tsb5270

Programmer
Jan 13, 2003
7
US
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.
 
I'm starting to think no one knows anything about this. I posted this question on another forum and no one is responding there either. Doesn't anyone out there have a clue about making named pipes work in VB.NET? Anyone? Anyone? Bueller? Bueller?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top