+
1 4 4
  1. #1
    Dima50       Dima50
    10.10.2007
    104
    ()
    0
    : 0 (: 0).

     stdin stdout

    .

    Win32. stdin stdout.

    WinApi , stdin stdout. ?

    create process?

    , pipe .

    . , , .

    .

  2. #2
    colombo       colombo
    08.03.2007
    , . -
    113
    ()
    0
    : 0 (: 0).

    stdio.h :

    ...
    // stdin
    FILE* f = stdin;
    fputs("helloworld", f);
    ...
    // stdout
    FILE* f = stdout;
    char* str;
    int size;
    fgets(str, size, f);
    ...



    BOOL WINAPI GetExitCodeProcess(
    HANDLE hProcess,
    LPDWORD lpExitCode
    );







    DWORD WaitForSingleObject(
    HANDLE hHandle,
    DWORD dwMilliseconds
    );

    MSDN 8.0 -
    ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WIN32COM.v10.en/dllproc/base/waitforsingleobject.htm
    ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WIN32COM.v10.en/dllproc/base/getexitcodeprocess.htm

  3. #3
    Dima50       Dima50
    10.10.2007
    104
    ()
    0
    : 0 (: 0).

    . .

    colombo
    DWORD WaitForSingleObject(
    HANDLE hHandle,
    DWORD dwMilliseconds
    );
    , Event Mutex, ?



    MSDN.

    .

  4. #4
    zir       zir
    10.03.2007
    9
    ()
    0
    : 0 (: 0).

    colombo
    stdio.h :

    ...
    // stdin
    FILE* f = stdin;
    fputs("helloworld", f);
    ...
    // stdout
    FILE* f = stdout;
    char* str;
    int size;
    fgets(str, size, f);
    ...
    --, .
    -, .
    -, , WinAPI, C.

    MSDN.

    WaitForSingleObject .