adam wrote:
> I'm looking for a function similar to the wxExecute function. 
> http://www.wxwidgets.org/wiki/index.php/WxExecute  this allows you to do 
> command line stuff without using the command line.
> 

There's nothing specifically in FLTK to do what you want, as that's not
something that belongs to a GUI toolkit.

You need some platform specific code, which is ugly both on windows and
linux (and also troublesome to debug).

Find attached a simple example (taken from my mrLiquid) that simplifies
Windows (win32 - not tested under vista) and Linux cumbersome apis to a
simpler api.  You will just need to change one or two stuff, like the
macro LOG_ERROR and the win32_error_to_MString() function.

For simple stuff, rely on using mr_system() which works just like
system().
If you need to control where input comes from and output/error messages
go or need to allow killing the process at some point, use the more
complex mr_popen3().


-- 
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to