Solved

Call external commands with EVC++

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

691 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