Home » Developing U++ » UppHub » Added SysExec package
Re: Added SysExec package [message #18924 is a reply to message #16047] |
Fri, 31 October 2008 23:38   |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
Sorry mdelfede
From then I have done some functions. Some of them are in http://www.ultimatepp.org/forum/index.php?t=msg&th=3942& amp;.
Between them I have included these functions:
// LaunchFile("Sheet.xls") will open the file with the program asigned by default to open xls files
bool LaunchFile(const String& file);
// LaunchCommand("mplayer myclip.avi", MyCallback) will launch the command line program with args without opening a window, and all the output will be sent to MyCallback(String &) function
int LaunchCommand(const char *cmd, void (*readCallBack)(String &));
// LaunchCommand("mplayer myclip.avi",str) will do the same but sending the output to String str
int LaunchCommand(const char *cmd, String &ret);
The LaunchCommand functions are based in the second sample code included in the August post.
I am using them extensively in funtions working with mplayer, mencoder, ffmpeg, sox and other for a program that handles video and audio (see a screenshot in the post I have included above).
These functions parse the output of the command by "readCallBack" that handles a progress bar and a command window (in the screenshot), this one just for debugging, but goes very well. The functions work well in Windows and Linux.
I want to do a higher level class to handle extern processes in a very simple way and with progress handling included.
Best regards
Koldo
Best regards
IƱaki
|
|
|
 |
|
Added SysExec package
|
 |
|
Re: Added SysExec package
By: koldo on Sat, 09 August 2008 22:29
|
 |
|
Re: Added SysExec package
|
 |
|
Re: Added SysExec package
By: mdelfede on Fri, 31 October 2008 19:04
|
 |
|
Re: Added SysExec package
|
 |
|
Re: Added SysExec package
By: koldo on Fri, 31 October 2008 23:38
|
 |
|
Re: Added SysExec package
By: mdelfede on Sat, 01 November 2008 15:39
|
 |
|
Re: Added SysExec package
By: koldo on Sun, 02 November 2008 12:37
|
 |
|
Re: Added SysExec package
By: mdelfede on Sun, 02 November 2008 20:58
|
 |
|
Re: Added SysExec package
By: koldo on Mon, 03 November 2008 17:40
|
 |
|
Re: Added SysExec package
By: mdelfede on Wed, 05 November 2008 22:45
|
 |
|
Re: Added SysExec package
By: captainc on Thu, 06 November 2008 00:38
|
 |
|
Re: Added SysExec package
By: mdelfede on Thu, 06 November 2008 15:49
|
 |
|
Re: Added SysExec package
By: koldo on Thu, 06 November 2008 18:00
|
 |
|
Re: Added SysExec package
By: mdelfede on Tue, 11 November 2008 13:40
|
 |
|
Re: Added SysExec package
By: koldo on Thu, 13 November 2008 12:23
|
 |
|
Re: Added SysExec package
By: mdelfede on Fri, 14 November 2008 16:51
|
 |
|
Re: Added SysExec package
By: koldo on Wed, 19 November 2008 08:05
|
 |
|
Re: Added SysExec package
By: mdelfede on Wed, 19 November 2008 09:44
|
 |
|
Re: Added SysExec package
By: mdelfede on Fri, 21 January 2011 00:13
|
 |
|
Re: Added SysExec package
By: mdelfede on Sun, 23 January 2011 18:36
|
 |
|
Re: Added SysExec package
|
 |
|
Re: Added SysExec package
By: mdelfede on Mon, 24 January 2011 17:51
|
 |
|
Re: Added SysExec package
|
Goto Forum:
Current Time: Fri Jun 06 09:00:42 CEST 2025
Total time taken to generate the page: 0.04610 seconds
|