Re: Console screen from spawn_process



On Thu, 2008-10-16 at 15:01 -0200, Paulo Flabiano Smorigo wrote:
> Hi Armin,
> 
> Thanks for the fast reply!
> 
> I compile the child process with the "-mwindows" parameter but the
> problem is that I need to communicate with the child using stdin and
> stdout by the method spawn_process_with_pipes but with "-mwindows"
> there is no stdin and stdout...

There still is, you just don't see it. You can use stdin and stdout for
communication even when there is no console window.

> So, there is no solution? I will have to understand the CreateProcess
> API ?

I did the same thing in Glom. Maybe it's helpful:
http://svn.gnome.org/viewvc/glom/trunk/glom/libglom/spawn_with_feedback.cc?view=markup

> Even if I have a system() call in the application this blank console
> appears... :(
> 
> If the bug is WONTFIX means there will be no fix?

Most likely not.

> Thanks...
> Paulo Flabiano Smorigo

Armin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]