How to run an another app from C++?
I'm doing well with my program, and an another problem occured.
How can I run an another app from my program?
For Example I'd like to run excel, with a path parameter.
I tried the
code, but I get an exception, and of course except does not run.
execlp("c:\\Program Files\\Microsoft Office\\Office10\\Excel.exe",dataBuffer);
Is there any other function to do this?
App opening not working.. Why?
I'm stuck again with app running.
I made my application run Excel with the required parameters, and it works very well. The app is now classified "complete" -at least that was what I've thought before making a real app from my program code.
When I chose the "make" option, an exe file was created -my app- and I began testing it. It turned out, that it somehow does NOT run Excel when required. Why is that? I use the ShellExecute you suggested me. When running from the builder it DOES work. Why doesn't it work, when I run it from the exe file?