Re: Capturing document extension




"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:eg8mVu7PHHA.4824@xxxxxxxxxxxxxxxxxxxxxxx


PART II

So how am I supposed to capture the .ret extension in each of my
applications? Am I supposed to programmatically alter the "Open with"
mechanism (the relation of which to the HKCR mechanism I have never
understood).

I seem to have versions 8 & 9 of my program on the "open with" pop-up menu.
Both are entitled

"Mozart: the music processor"

and I have to try it to find out which is which. I also have "Mozart
Viewer" - another program with its own icon.


Looking for "Mozart: the music processor" in the registry I find four
entries (with lots of others) in

HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache

with in each case

key = a full path to program
value = "Mozart: the music processor"

(The four keys correspond with installed versions of MOZART 8 and 9 in
"C:\Program files" and development versions in my Visual Studio projects
folder - in each case the debug build.)

At this moment I am not sure:
- why only 2 appear on the open with menu (maybe I asked for them?)
- which 2 they are
- why the text it "Mozart: the music processor" (though I am clearly the
original author of this phrase)

But

HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache

is a mine of interesting entries. Batch files I have written to do little
jobs are all in there

key = path to batch file
value = batch file name with .bat lopped off.

Turning to

HKCU\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mz\OpenWithList

I find

key = a, value = mozart32.exe
key = b, value = ieexplore.exe
key=c, value = mozartViewer.exe
key=d, value=notepad.exe
key=MRUList, value=abcd

(I have used NOTEPAD as a cheap and nasty file viewer as the header part is
ASCII).

but nothing to indicate the 4 full paths in the ShellNoRoam entry which is
apparently the only way it could have found the text for the OpenWith menu.

I feel there is something I must be missing here...

You are not alone. This must be documented somewhere!


Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm


.



Relevant Pages

  • Re: I crawl out of the technological dark ages
    ... He saves special wrath for the Dies Irae of the Requiem. ... And Mr Rosner's ire is just completely invalidated by the fact that Mozart ... while being a rubbish composer, then he must be better than anyone gave him ... Author MOZART the music processor for Windows - ...
    (rec.music.compose)
  • Re: Why pointers to functions?
    ... David Webber ... Author of 'Mozart the Music Processor' ... For discussion/support see ...
    (microsoft.public.vc.language)
  • Re: deactivating an event for certain time
    ... If it is just a mouse click then chack it in the routines which respond to mouse clicks (OnLButton... ... David Webber ... Author of 'Mozart the Music Processor' ...
    (microsoft.public.vc.mfc)
  • Re: how can javascript harm my computer?
    ... David Webber ... Author of 'Mozart the Music Processor' ... For discussion/support see ...
    (microsoft.public.scripting.jscript)