Is it possible to use CreateProcess API in multithreading application ?
I would like to create a simple multithreading application which each thread will execute an application called "TESTCONSOLE.EXE".
This TESTCONSOLE.EXE writes several random text to the console (command prompt), then terminated.
The main application needs to "catch" that output (random text) and display it in a TMemo.
Please if you can give me a simple demo source code that demonstrate this task.
Limit the number of thread = 10.
When the TESTCONSOLE.EXE terminated, the associated thread MUST be killed.
The main application should run in loop, until terminated. So, in this case, new thread will be created because old thread will be killed (after TESTCONSOLE.EXE terminated).
Thanks in advance.