Jump to content
  • Advertisement
Sign in to follow this  
vesoljc

[win32.net] file types

This topic is 4494 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

i am having some issues on binding specific file types with custom apps. im working on an editor which provides diffrent node types, for instance tga, txt, wav, mp3 etc... what i did is, i created two extra commands in explorer/file types/advanced (view and edit). for example tga view opens irfan view, while tga edit opens photoshop. now, when u doubleclick inside the editor i say something like this.
         ProcessStartInfo  *lpProcessInfo = new System::Diagnostics::ProcessStartInfo();
         lpProcessInfo->FileName = cvtString( filename );
         lpProcessInfo->Verb     = cvtString("my_view");
         if( lpProcessInfo->Verbs->Contains( cvtString("my_view") ) )
         {
            Process::Start(lpProcessInfo);
         }

the downside is that i must manualy add these commands to the system. i did check the registry, but it seams kinda wierd to me (xxxfile/command/...). i want to be to able to provide the user with the ability to choose which apps to run on view/edit. any ideas on how to do this? i' working on managed c++ project, with extra c++ libs (vs2005).

Share this post


Link to post
Share on other sites
Advertisement
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!