Thread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean-François GAZET

    Thread

    Hi,

    i'm writing a win32 application. I need the code to :
    - start a "win32 console application" (a MSDOS EXE file)
    - write to its STDIN
    - read from its STDOUT
    But with a thread, i think, not to "lock" the main application.

    Thanks for your help.


  • John Harrison

    #2
    Re: Thread


    "Jean-François GAZET" <jeffgazet@free .fr> wrote in message
    news:3f478fb6$0 $2411$a3f2974a@ nnrp1.numericab le.fr...[color=blue]
    > Hi,
    >
    > i'm writing a win32 application. I need the code to :
    > - start a "win32 console application" (a MSDOS EXE file)
    > - write to its STDIN
    > - read from its STDOUT
    > But with a thread, i think, not to "lock" the main application.
    >
    > Thanks for your help.
    >[/color]

    No you do not need a thread. Windows is a multitasking operating system
    which means that one program does not stop another program from running.

    But this has nothing to do with C++, which is the topic of this group. You
    should ask on a Windows programming group such as
    news:comp.os.ms-windows.program mer.win32. Ask about the CreateProcess Win32
    API function, it does what you need.

    john


    Comment

    • Kevin Goodsell

      #3
      Re: Thread

      Jean-François GAZET wrote:[color=blue]
      > Hi,
      >
      > i'm writing a win32 application. I need the code to :
      > - start a "win32 console application" (a MSDOS EXE file)
      > - write to its STDIN
      > - read from its STDOUT
      > But with a thread, i think, not to "lock" the main application.
      >
      > Thanks for your help.
      >
      >[/color]

      I am unable to locate a C++ question here. Perhaps you have the wrong
      group? Please re-read the welcome message, paying particular attention
      to the section on topicality.



      -Kevin
      --
      My email address is valid, but changes periodically.
      To contact me please use the address from a recent posting.

      Comment

      • Jean-François GAZET

        #4
        Re: Thread

        > > Hi,[color=blue][color=green]
        > >
        > > i'm writing a win32 application. I need the code to :
        > > - start a "win32 console application" (a MSDOS EXE file)
        > > - write to its STDIN
        > > - read from its STDOUT
        > > But with a thread, i think, not to "lock" the main application.
        > >
        > > Thanks for your help.
        > >
        > >[/color][/color]
        [color=blue]
        > I am unable to locate a C++ question here.[/color]

        I'm asking about C++ source code and functions to do what i wrote. But
        forget, i asked to news:comp.os.ms-windows.program mer.win32


        Comment

        Working...