?
Solved

Starting a program.

Posted on 2000-05-11
1
Medium Priority
?
252 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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