Solved

Call external commands with EVC++

Posted on 2004-09-21
5
380 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

17 Experts available now in Live!

Get 1:1 Help Now