Solved

Check for Valid File Association

Posted on 1998-12-30
1
194 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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.
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.

863 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

25 Experts available now in Live!

Get 1:1 Help Now