Solved

Starting a program.

Posted on 2000-05-11
1
229 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
has22 challenge 11 95
FizzBuzz challenge 9 81
Is there a simple front-end menu system. 9 89
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…
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…
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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