File Type Associating
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?
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. :)
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
Hope that helps,
Twilight Dragon
no, i dont mean manually i mean in code so people using my media player will get there mp3's playing in my app.
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.
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
cheers
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement