Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Detecting Microsoft Video for Windows

Question:
I need to inquire if Video for Windows has been installed before attempting to play an AVI file. How can I do this?

Answer:
All versions of Windows keep track of "file associations". These are the things that make it so when you double-click a "doc" file you fire up Word or a "txt" file fires up Notepad. I'm not familiar with Video for Windows but I'm pretty sure it associates itself with the "avi" extension. Check through the WIN.INI file (for Windows 3.x) or the registry (for Windows '95 or NT 4.0) to look for the "Associations" section. Look for the "avi" association. If you don't find it, it's an automatic "no". If you find it, look what it's associated with. If it's Video for Windows, it's a "yes", if not, a "no".

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap