I want to execute this program from my GUI and execute some commands
I haven't faound anythin usefull (excluding wxShell() )
Could anyone point to a good guide/explanation on how to achieve this?
The program doesnt have any argv[] parsing, everything is done trough manual input
calling shell program, how can i pass commands to stdin?
Re: calling shell program, how can i pass commands to stdin?
Use wxProcess and wxExecute
https://docs.wxwidgets.org/trunk/classwx_process.html
https://docs.wxwidgets.org/trunk/group_ ... cctrl.html
Take a look at wxProcess::GetInputStream/GetOutputStream
Check the "exec" sample that comes with wxWidgets.
https://docs.wxwidgets.org/trunk/classwx_process.html
https://docs.wxwidgets.org/trunk/group_ ... cctrl.html
Take a look at wxProcess::GetInputStream/GetOutputStream
Check the "exec" sample that comes with wxWidgets.
Use the source, Luke!
Re: calling shell program, how can i pass commands to stdin?
Have you considered boost::process?El_isra wrote: ↑Fri Jul 09, 2021 4:43 pm I want to execute this program from my GUI and execute some commands
I haven't faound anythin usefull (excluding wxShell() )
Could anyone point to a good guide/explanation on how to achieve this?
The program doesnt have any argv[] parsing, everything is done trough manual input
https://www.boost.org/doc/libs/1_76_0/d ... troduction