Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Added SysExec package
Re: Added SysExec package [message #18947 is a reply to message #16047] Sun, 02 November 2008 12:37 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Max

In fact the "LaunchCommand" functions have nothing new as they are fully based in <usvn/SlaveProcess.h>, class LocalProcess.

As they handle command line functions I would like them to:
- Return a String with all the output
- Use a callback function that will get Strings from the command output (possibly line by line as command functions usually output this way). Gui version will have ProcessEvents() inside so that the program would be responsive.
- Now both wait for the command to end, so there could be other with a callback that gets a String and a handle to check if the command has ended, to parse the String and send input to the command or to kill the command. These callback functions would be called from a Timer.
- Have the possibility of a command window for debugging

LaunchFile and GetExtExecutable (this one gets the default program that opens the provided extension) are different, but now they have not clear location (see post http://www.ultimatepp.org/forum/index.php?t=msg&goto=189 16&#msg_18916).

I do not have any preferences as I am here only from August (but I will be here many time), so you have much more experience about how to organize Upp and to declare the functions. I will arrange them were you prefer.

Best regards
Koldo (with "l") Smile


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SOLVED] Control4U_demo cannot close ?
Next Topic: Job package: A lightweight worker thread for non-blocking operations.
Goto Forum:
  


Current Time: Wed Jun 04 19:17:06 CEST 2025

Total time taken to generate the page: 3.72867 seconds