Solved

Call external commands with EVC++

Posted on 2004-09-21
5
378 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
5 Comments
 
LVL 5

Accepted Solution

by:
Didier Vally earned 150 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 150 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now