Skip to main content
gamedev.net
🔒 Locked

[win32.net] file types

Started by vesoljc Jun 6, 2006 at 3:51 AM 0 replies 950+ views
Original Post
vesoljc
vesoljc
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).
Abnormal behaviour of abnormal brain makes me normal...www.zootfly.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.