Home » U++ Library support » U++ Library : Other (not classified elsewhere) » call to system() under Windows
call to system() under Windows [message #13275] |
Fri, 28 December 2007 10:47 |
|
forlano
Messages: 1185 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
from my program under Windows (a gui) I call an external program made itself with a gui (but it could be a console application), say childgui.exe by the command:
I observe that the child process is became like a modal dialog and prevent me to use in the meanwhile the parent program. Only when I close childgui.exe the control come back to the main program.
I would like to know if there is a way under Windows to let the child process to operate indipendently of the main exe without to stop it. (for some reason I cannot avoid the use of system() because the child process is a sort of external plugin that I do not know in advance, but perhaps there is a better way to run it).
Thanks,
Luigi
[Updated on: Fri, 28 December 2007 10:48] Report message to a moderator
|
|
|
Re: call to system() under Windows [message #13277 is a reply to message #13275] |
Fri, 28 December 2007 13:25 |
gertwin
Messages: 25 Registered: May 2007 Location: Netherlands
|
Promising Member |
|
|
Use Createprocess in combination with GetExitCodeProcess to get the result or use another thread whith the system function.
I prefer using the function Createprocess over the function system.
Gertwin
|
|
|
Goto Forum:
Current Time: Fri Apr 19 21:47:13 CEST 2024
Total time taken to generate the page: 0.06400 seconds
|