Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Rich C

Search: Search took 0.01 seconds.

  1. Re: Problem with AllocConsole and child processes Windows 7

    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...
  2. Re: Problem with AllocConsole and child processes Windows 7

    Paul,

    I did the following in the function and it did not work. Note: I set si.cb:
    if(AllocConsole())
    {
    outp = GetStdHandle(STD_OUTPUT_HANDLE);
    coord.X = 80;
    coord.Y = 500;...
  3. Re: Problem with AllocConsole and child processes Windows 7

    Thanks Paul. Good catch.

    Rich
  4. Re: Problem with AllocConsole and child processes Windows 7

    I assumed when I called GetStartupInfo to fill in the STARTUPINFO structure, the first member of the STARTUPINFO structure would have been set

    Rich
  5. Re: Problem with AllocConsole and child processes Windows 7

    I have a feeling its the misuse of the GetStartupInfo function when spawing child processes.

    Rich
  6. Re: Problem with AllocConsole and child processes Windows 7

    What's interesting to me is that this worked in Windows XP and prior versions of Windows.

    Thanks again,
    Rich
  7. Re: Problem with AllocConsole and child processes Windows 7

    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...
  8. Re: Problem with AllocConsole and child processes Windows 7

    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...
  9. Re: Problem with AllocConsole and child processes Windows 7

    Hope this is enough for you.

    int execute_command(char *command)
    {
    HANDLE outp;
    COORD coord;
    STARTUPINFO si;
    PROCESS_INFORMATION pi;
    DWORD exitcode;
    BOOL ret;
  10. Problem with AllocConsole and child processes Windows 7

    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...
Results 1 to 10 of 10


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center