1. system_exec and system()

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?

new topic     » topic index » view message » categorize

2. Re: system_exec and system()

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/

new topic     » goto parent     » topic index » view message » categorize

3. Re: system_exec and system()

Wonderful!! I'll try it. Thanks

new topic     » goto parent     » topic index » view message » categorize

4. Re: system_exec and system()

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: system_exec and system()

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu