Call external commands with EVC++

Hello everybody!

im trying to develop an application that runs in kiosk mode, and i need to call to PocketWord, PocketExcel, etc.. executable files (i mean, i need to execute them trought my application).

Someone knows which is the correct code to do this??
I suppose that, if i can call a command like ( execute "word.exe") or something like this, it will be perfect.

Thanks in advance!
Who is Participating?
Didier VallyConnect With a Mentor Systems Engineer and Finance AnalystCommented:
A little example :

res = CreateProcess( L"MyCalledApp.exe",
            L"/S /T", //Command line parameters (ex: file to open)

Just have a look to the CreateProcess API ;)
Synth2Author Commented:
Thanks for the help!

now i see that, when i close my application, Pocket Word (for example) continues executing,
i mean, if u take a look to the execution list, is still there.
I want that the process terminate when i close Pocket word and i return to my application.
I try make it with TerminateProcess, but i see is still there.

Someone know what is happening?

Thanks in advance.
Mikal613Connect With a Mentor Commented:;en-us;275230

Just change the iexplorer for the app name you wanna open
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.