July 30th, 2013, 04:42 PM
Sorry, I was assuming you had looked at my original post. This was simply taking Igor's code and using GetStartupInfo. The problem is that when executing the code from the windows explorer, the...
July 30th, 2013, 04:10 PM
I did the following in the function and it did not work. Note: I set si.cb:
outp = GetStdHandle(STD_OUTPUT_HANDLE);
coord.X = 80;
coord.Y = 500;...
July 30th, 2013, 11:14 AM
Thanks Paul. Good catch.
July 30th, 2013, 11:00 AM
I assumed when I called GetStartupInfo to fill in the STARTUPINFO structure, the first member of the STARTUPINFO structure would have been set
July 30th, 2013, 10:39 AM
I have a feeling its the misuse of the GetStartupInfo function when spawing child processes.
July 30th, 2013, 10:26 AM
What's interesting to me is that this worked in Windows XP and prior versions of Windows.
July 29th, 2013, 05:34 PM
Thanks Igor. Your code worked. When I first saw the code, I thought you were just repeating my code.
The difference is in STARTUPINFO. You essentially zeroed it out (except for the size); I...
July 29th, 2013, 12:57 PM
Did your child process write to stdout and the output was shown in the console window?
Did you try to run your program by double-clicking on the executable file in the windows explorer or running it...
July 26th, 2013, 11:50 AM
Hope this is enough for you.
int execute_command(char *command)
July 26th, 2013, 11:19 AM
I have a GUI window that allocates a console using AllocConsole and then executes a child console process which should write to the console window I allocated. When I execute the program from the...