Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Spawning off a separate application.

Posted on 1998-12-15
1
Medium Priority
?
222 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
[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
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

618 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