Solved

Spawning off a separate application.

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

9 Experts available now in Live!

Get 1:1 Help Now