cout not working

I'm writing a program in C++ that has to interact with an external program, "wish" , to display the GUI. After a call to fork(), the child process calls wish with execlp and the parent process continues processing data. I also call the function pipe twice to create two pipes that allows wish and my program to interact.

The problem I get is that after the call to pipe and fork, cout stops working. Can anybody help me please?
Sounds like you want popen2() functionality. This site provides a good working example: http://snippets.dzone.com/posts/show/1134

Note the bug fixes in the comments below the original example.
Topic archived. No new replies allowed.