?
Solved

Call external commands with EVC++

Posted on 2004-09-21
5
Medium Priority
?
385 Views
Last Modified: 2013-11-18
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!
0
Comment
Question by:Synth2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Accepted Solution

by:
Didier Vally earned 600 total points
ID: 12110253
A little example :

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

Just have a look to the CreateProcess API ;)
 
0
 

Author Comment

by:Synth2
ID: 12110490
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.
0
 
LVL 48

Assisted Solution

by:Mikal613
Mikal613 earned 600 total points
ID: 12111778
http://support.microsoft.com/default.aspx?scid=kb;en-us;275230

Just change the iexplorer for the app name you wanna open
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
A short article about problems I had with the new location API and permissions in Marshmallow
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question