Sign in to follow this  

File Type Associating

This topic is 4489 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
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
Or do you mean having your app register itself as the default for those files? A tad trickier -- the MSDN Library is your guide here. For my simple image viewing application, SimpleView, I used the Win32 Registry functions to create the necessary keys, using the File Association guide.

Hope that helps,
Twilight Dragon

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

This topic is 4489 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this