MrDance
September 12th, 1999, 01:06 PM
I want to open files with my application when rightclicking on the file in windows. Like winzip works (add x to x.zip). What do I need to do? Thanks Henrik
|
Click to See Complete Forum and Search --> : Controlling programs with right mouse MrDance September 12th, 1999, 01:06 PM I want to open files with my application when rightclicking on the file in windows. Like winzip works (add x to x.zip). What do I need to do? Thanks Henrik Lothar Haensler September 13th, 1999, 01:43 AM create REG file that looks similar to the one below and run it via regedit or by double-clicking it in explorer: REGEDIT4 ; This adds the ability to Right-Click on a .dll or .ocx ; and get the Register / UnRegister options. ; ; If it doesn't work for you, mail me and tell me about it. ; Jon Evans <jon@evansoft.demon.co.uk> ; ========== ; .DLL files ; ========== [HKEY_CLASSES_ROOT\.dll] "Content Type"="application/x-msdownload" @="dllfile" [HKEY_CLASSES_ROOT\dllfile] @="Application Extension" [HKEY_CLASSES_ROOT\dllfile\Shell\Register\command] @="regsvr32.exe \"%1\"" [HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command] @="regsvr32.exe /u \"%1\"" The sample creates a new item in the contextmenu for DLLs and ocxs. Adapt it to your needs. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |