Opening files in external applications

Posted on 1999-06-23
Medium Priority
Last Modified: 2010-04-02
I wrote a Visual C++ 5.0 / MFC application. I want to open fron my application files with other Windows application (doc files with Word, htm files with the defualt browser, etc. All acording to Windows' mapping between filenames extentions and applications).
How should I do it?
If there is a way that works only for HTML files, I think it'll be ok too.
        10x in advance, uric
Question by:uric
1 Comment

Accepted Solution

WxW earned 800 total points
ID: 1198258

Example : ShellExecute(0,"open","my.doc",0,0,SW_SHOWNORMAL)

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

624 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