?
Solved

Spawning off a separate application.

Posted on 1998-12-15
1
Medium Priority
?
224 Views
Last Modified: 2013-11-20
I want to use a Visual C++ program to execute, for instance,
"notepad MyNotes.doc".  I would like the effect to be as if
I had manually started the process, so it's in the task bar and the application is still active when my program quits.
0
Comment
Question by:ttilling
1 Comment
 

Accepted Solution

by:
everlast earned 200 total points
ID: 1326229
There's a nifty little function called ShellExecute()
that does exactly what you need. Just call it like this

ShellExecute(NULL,TEXT("open"),TEXT("notepad.exe"),TEXT("mynotes.doc"),NULL, SW_SHOWNORMAL);

// everlast
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

850 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