open a file

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.
Who is Participating?
Tommy HuiConnect With a Mentor EngineerCommented:
The best way would be to use ShellExecute().

ElmerFudAuthor Commented:
PS, i'm using Visual C++ 5.0
ElmerFudAuthor Commented:
Thank you very much sir -- you are a gentleman and a scholar.
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.

All Courses

From novice to tech pro — start learning today.