Hi everyone..

Would anyone know where I could find a good explanation on 'Pipes' in programming. I'm trying to understand how I might go about using input into a GUI application to display output in a dos console. As I understand it, the concept of pipes comes into this somehow.

I've googled this but am not able to find a clear explanation. Anybody know where there is one or something on that entire topic area?

Thanks again everybody..

3 Years
Discussion Span
Last Post by christinetom

Hi Moschops.. thanks,, but it doesn't explain what pipes are. I did read this.
I just want to understand concepts such as this.


True, it doesn't explain what pipes are. So your question is more "what are pipes" than "how can I output information to a console from a GUI"?

Imagine two separate processes. You can think of this in simple terms as running two different executable programs. If they need to communicate, we enter the field of IPC - Inter Process Communication.

One way they can communicate is with a pipe; this is simply a facility provided by the operating system that acts as a simple FIFO queue. One process puts data into the pipe, the other process pulls data out of the pipe in the order it was pushed in. Conceptually, that's it.

The Windows functions for this are described here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365780(v=vs.85).aspx

Edited by Moschops

Votes + Comments
Very good answer.. Thanks
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.