Solved

Check for Valid File Association

Posted on 1998-12-30
1
183 Views
Last Modified: 2010-04-02
I want to check to see if I can play mpeg movies on a sytem.  So, early on in the application I want to check if they have a program associated with the mpeg extension.  Is there an easy way to do this - I was going to try GetClassFile() and see if I get a valid CLSID, but this won't work in 16-bit windows and I wanted to maintain that capability...
0
Comment
Question by:gpaige
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 1181311
Simply use the 'FindExecutable()' API. If it does not return an error (i.e. returns > 32), an appropriate executable is installed... (also available for Win16)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now