Solved

open a file

Posted on 1998-06-05
3
200 Views
Last Modified: 2010-04-01
I have a list of files which are in a dialog box.  when the user double clicks the files, I want to bring up the app associated with the file and load that file into that app -- not unlike exploerer does when you double click a file.  How do I do that?  I'd rather not go digging through the registy to find the information I need.  any solution must work on Windows NT Worstation and Windows 95.
0
Comment
Question by:ElmerFud
  • 2
3 Comments
 
LVL 1

Author Comment

by:ElmerFud
ID: 1165291
PS, i'm using Visual C++ 5.0
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1165292
The best way would be to use ShellExecute().

0
 
LVL 1

Author Comment

by:ElmerFud
ID: 1165293
Thank you very much sir -- you are a gentleman and a scholar.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

832 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