Solved

Spawning off a separate application.

Posted on 1998-12-15
1
194 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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 96
iSeries DB2 Query 2 97
how to monitor remote shell execution on linux 9 104
java ^ examples 8 69
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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