Jump to content
  • Advertisement
Sign in to follow this  
bikola_p

File Type Associating

This topic is 4705 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, i need help trying to get a file type "mp3" to automatically load in my app rather then media player, i searched on the net and only get VB tutes, any clue or code as to how i can do this?

Share this post


Link to post
Share on other sites
Advertisement
Assuming that you use WinXP, right click on the file, choose "open with" then select your application (or click browse if it isnt listed) then check the little box named "always use this application for this kind of file" or something like that. Then click OK and you should be ok. :)

Share this post


Link to post
Share on other sites
It is a registry setting. Look at the HKEY_CLASSES_ROOT and the extention (.mp3)

Cheers

Share this post


Link to post
Share on other sites
no, i dont mean manually i mean in code so people using my media player will get there mp3's playing in my app.

Share this post


Link to post
Share on other sites
wow, this creating a File Association stuff is pretty poorly documented, has anyone got a real practical source code example, or know where i can find one, i searcg PlanetSourceCode and found Jack.

Share this post


Link to post
Share on other sites
When you create a setup project in Visual Studio you also get the option to assign file extentions. This way you don't code it yourself but leave it to a setup...

cheers

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!