1. system_exec and system()
- Posted by George Walters <gwalters at sc.rr.com> Mar 02, 2006
- 451 views
- Last edited Mar 03, 2006
I have written my own version of a menu and would like to be able for it to launch a program that runs then be able to launch another and another. The launched programs are freestanding on their own. I can't figure out how to do this. The system() works but opens a dos window that has to be kill'ed with each launch. The system_exec freezes the menu waiting for a return code. Anyone know how I can do this?
2. Re: system_exec and system()
- Posted by cklester <cklester at yahoo.com> Mar 02, 2006
- 436 views
- Last edited Mar 03, 2006
George Walters wrote: > > I have written my own version of a menu and would like to be able for it to > launch a program that runs then be able to launch another and another. The > launched programs are freestanding on their own. I can't figure out how to do > this. The system() works but opens a dos window that has to be kill'ed with > each launch. The system_exec freezes the menu waiting for a return code. > > Anyone know how I can do this? Are you using win32lib? I use shellExecute(), which works perfect for that. -=ck "Programming in a state of Euphoria." http://www.cklester.com/euphoria/
3. Re: system_exec and system()
- Posted by George Walters <gwalters at sc.rr.com> Mar 02, 2006
- 445 views
- Last edited Mar 03, 2006
Wonderful!! I'll try it. Thanks
4. Re: system_exec and system()
- Posted by George Walters <gwalters at sc.rr.com> Mar 03, 2006
- 439 views
CK, it looks like I need to use shellExecuteEx since I need to pass arguments. I've got it seemingly working but it's returning a 42 return code and I've no idea what that is. A 42 is not in the list of codes. The doc says 0-32 are valid codes. Any Idea what it's trying to tell me?
5. Re: system_exec and system()
- Posted by Larry Miller <larrymiller at sasktel.net> Mar 03, 2006
- 443 views
George Walters wrote: > > CK, it looks like I need to use shellExecuteEx since I need to pass > arguments. I've got it seemingly working but it's returning a 42 return code > and I've no idea what that is. A 42 is not in the list of codes. The doc says > 0-32 are valid codes. Any Idea what it's trying to tell me? Microsoft tells us on MSDN that returns 0-32 are error conditions, anthing above is normal. In my experience 42 is a typical return code when everything is ok. Larry Miller