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

x
?
Solved

Starting a program.

Posted on 2000-05-11
1
Medium Priority
?
258 Views
Last Modified: 2013-11-20
How do I start a program? I have a program that exports an HTML-document, and I want to open it in the standard browser when it's exported. How can I do that? The browser may not be as a child-process from my own program, it has to be independent. I think I can start it by trying to start the HTML-file itself.
0
Comment
Question by:ToniVR
[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
 
LVL 1

Accepted Solution

by:
tvanceplus earned 80 total points
ID: 2801657
First, you need to get the paths of the browser and the html file.

//standard ie path
CString browserPath;
browserPath="c:\\program files\\"+
  "internet explorer\\iexplore.exe";

CString htmlPath;
htmlPath="c:\\webpage.html";

WinExec(browserPath+" "+htmlPath,
        SW_SHOWNORAML);

Good Luck!
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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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

650 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