Search:
Forum
General C++ Programming
C++ best way to launch another process?
C++ best way to launch another process?
Dec 2, 2019 at 4:52am UTC
akash16
(148)
The requirement is:
I have to update a XML file(I did it using xerces).
Then want to run another process(exe file) by giving above updated XML file as a input parameter.
Regards
Dec 2, 2019 at 9:51am UTC
coder777
(8444)
Take a look at boost process:
https://www.boost.org/doc/libs/1_71_0/doc/html/process.html
Alternatively you take a look at system dependent calls like shellexecute
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutew
Dec 2, 2019 at 12:42pm UTC
akash16
(148)
Thank you coder777 for the reply.
Don't want to use the boost lib.
I have tried shellexecuteA() function but for that I need to include "windows.h".
But after including "windows.h" I m getting lots of compile errors.
So finally, I have used std::system() function.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs