Solved

Starting a program.

Posted on 2000-05-11
1
236 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
1 Comment
 
LVL 1

Accepted Solution

by:
tvanceplus earned 20 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 94
Path of Workbook 3 86
Problem to event 3 105
Bartender label printing - switch on and off graphics 3 56
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 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