 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rainer Budde Guest
|
Posted: Sat Jan 17, 2004 4:06 pm Post subject: IContextMenu and MayChangeDefaultMenu |
|
|
Hello,
I“ve created successfully a shell extension to operate with my own
filetypes(for example *.m3l). I“ve used "MayChangeDefaultMenu" to execute a
file (a *.m3l) file automatically with a double click and it works
correctly. But my problem is if another application calls the function
shellexecute and open a .m3l filetype I always get the message Error: 1155.
This error occurs if my file type isn“t correctly associated with my
applications. I want that the Shell-Extension handles completly the handling
of *.m3l filetypes. My Registry Key for *.m3l files looks like this:
..m3l
..m3l -> default -> mp3archiver.archiv
mp3archiver.archiv
mp3archiver.archiv -> DefaultIcon -> foobar
mp3archiver.archiv -> ShellEx
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers -> MP3AContMenu
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers -> MP3AContMenu -> my
CLSID
I don“t want use the shell entries like this one
mp3archiver.archiv -> Shell
mp3archiver.archiv -> Shell -> open and so on
So is it possible to execute a file with shellexecute and my shell extension
handles my file type.
Best Regards
Rainer
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Sat Jan 17, 2004 11:15 pm Post subject: Re: IContextMenu and MayChangeDefaultMenu |
|
|
Rainer Budde wrote:
| Quote: | I“ve created successfully a shell extension to operate with my own
filetypes(for example *.m3l). I“ve used "MayChangeDefaultMenu" to execute a
file (a *.m3l) file automatically with a double click and it works
correctly.
|
What's MayChangeDefaultMenu?
| Quote: | But my problem is if another application calls the function
shellexecute and open a .m3l filetype I always get the message Error: 1155.
This error occurs if my file type isn“t correctly associated with my
applications. I want that the Shell-Extension handles completly the handling
of *.m3l filetypes. My Registry Key for *.m3l files looks like this:
.m3l
.m3l -> default -> mp3archiver.archiv
mp3archiver.archiv
mp3archiver.archiv -> DefaultIcon -> foobar
mp3archiver.archiv -> ShellEx
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers -> MP3AContMenu
mp3archiver.archiv -> ShellEx -> ContextMenuHandlers -> MP3AContMenu -> my
CLSID
I don“t want use the shell entries like this one
mp3archiver.archiv -> Shell
mp3archiver.archiv -> Shell -> open and so on
|
Why not? Have you tried them? Maybe they could make the other programs
stop crashing.
| Quote: | So is it possible to execute a file with shellexecute and my shell extension
handles my file type.
|
When you call ShellExecute, you specify a verb. If that verb isn't
listed in the registry, then different operating systems will do
different things to compensate. What have you done to indicate which
verb is the default for your file type?
--
Rob
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|