471,075 Members | 794 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Writing to an existing Named Pipe

I am trying to use .NET to "tap into" a named pipe created by a non .NET 3rd
party application. Specifically, the application is a table loading utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!
Nov 17 '05 #1
3 2465
Hi,

IIRC .NET do not have support for named piped, you will have to P/Invoke
the API, I have a link in the office and will send it to you tomorrow(
monday ) morning. you could do a search in google though.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"EricR" <Er***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!

Nov 17 '05 #2
Hi,

http://www.gotdotnet.com/community/u...=named%20pipes

Is the link, as I said you should find more details in google

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uQ**************@TK2MSFTNGP09.phx.gbl...
Hi,

IIRC .NET do not have support for named piped, you will have to P/Invoke
the API, I have a link in the office and will send it to you tomorrow(
monday ) morning. you could do a search in google though.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"EricR" <Er***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program.
I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time
communicating.

Has anyone accomplished this? HELP!

Thanks!


Nov 17 '05 #3
http://www.codeproject.com/csharp/Do...PipesPart1.asp

"EricR" <Er***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!


Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Srijit Kumar Bhadra | last post: by
2 posts views Thread by Rudolf Bargholz | last post: by
reply views Thread by Spiros | last post: by
2 posts views Thread by FB's .NET Dev PC | last post: by
reply views Thread by EricR | last post: by
reply views Thread by olaf.dietsche | last post: by
3 posts views Thread by DBC User | last post: by
7 posts views Thread by andrewb | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.