1. Prevent Console with wx_shell()

RE: wxEuphoria, wx_shell()

Is there any way to prevent a console from appearing when wx_shell() is called? Or how about shutting down the console after the call?

new topic     » topic index » view message » categorize

2. Re: Prevent Console with wx_shell()

euphoric said...

RE: wxEuphoria, wx_shell()

Is there any way to prevent a console from appearing when wx_shell() is called? Or how about shutting down the console after the call?

wx_shell() is just a simple pass-through for wxShell:

void WXEUAPI  wx_shell(object command) 
{ 
    wxShell( get_string( command ) ); 
    wxDeRefDS( command ); 
} 

And according to their docs...

wxWidgets said...

bool wxShell(const wxString& command = NULL)

Executes a command in an interactive shell window. If no command is specified, then just the shell is spawned.

So I don't think there's any way to un-spawn the shell window once it opens.

You'll probably want to create a wxProcess instead. And don't over look Euphoria's own Pipe Input/Output routines as well.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu