keyongtech


  keyongtech > dotnet.languages.* > dotnet.languages.vb > 07/2008

 #1  
07-06-08, 04:39 PM
AGP
I have been looking far and wide for an easy to implement shell extension.
My needs are basic...for two file extensions .YYY and .ZZZ I would like the
context menu in explorer to simply show my app icon and "Open with
MyCooolApp". Are there any recommendations for a shell extension code base?
I am trying to look for one that is easily changed and compiled and will run
as a unique extension to my app.

Rgds
AGP
 #2  
07-06-08, 04:59 PM
Steve Gerrard
AGP wrote:
> I have been looking far and wide for an easy to implement shell
> extension. My needs are basic...for two file extensions .YYY and .ZZZ
> I would like the context menu in explorer to simply show my app icon
> and "Open with MyCooolApp". Are there any recommendations for a shell
> extension code base? I am trying to look for one that is easily
> changed and compiled and will run as a unique extension to my app.
>


I would start here:

RegSetValueEx: Create a Registered File Association
[url down]
 #3  
07-07-08, 04:58 AM
AGP
"Steve Gerrard" <mynamehere> wrote in message
news:nz2d
> AGP wrote:
>
> I would start here:
>
> RegSetValueEx: Create a Registered File Association
> [..]
>

thanks for the link but I think you may have misunderstood me. I know how to
associate a file extension with my
app. that is fairly starightforward. instead my challenge here is to
implement a shell extension with a context menu
that one shows the application icon and two will execute my app when
selected. to see what i mean just clikc here
[url down]
The icon shows in the context menu and that is only done through a custom
DLL.

AGP
 #4  
07-07-08, 08:45 AM
Steve Gerrard
AGP wrote:
>
> thanks for the link but I think you may have misunderstood me. I know
> how to associate a file extension with my
> app. that is fairly starightforward. instead my challenge here is to
> implement a shell extension with a context menu
> that one shows the application icon and two will execute my app when
> selected. to see what i mean just clikc here
> [..]
> The icon shows in the context menu and that is only done through a
> custom DLL.


Oh, you mean that kind of extension. :)

For that, I would start with: The Complete Idiot's Guide to Writing Shell
Extensions:

http://www.codeproject.com/KB/shell/...uideindex.aspx

It's a quite extensive (and serious) treatment by Michael Dunne. Brush up on
your C# and C++.
 #5  
07-07-08, 08:38 PM
AGP
"Steve Gerrard" <mynamehere> wrote in message
news:nz2d
> AGP wrote:
>
> Oh, you mean that kind of extension. :)
>
> For that, I would start with: The Complete Idiot's Guide to Writing Shell
> Extensions:
>
> [..]
>
> It's a quite extensive (and serious) treatment by Michael Dunne. Brush up
> on your C# and C++.
>


yep i've read those too and many other articles but alas i do not program in
C.
i was hoping for something that is easily modifed for my own app. again my
need is simple. one context menu item with an icon and text. ill keep
looking.

AGP
 #6  
07-09-08, 08:55 PM
Chris Dunaway
On Jul 7, 2:38 pm, "AGP" <sindizzy> wrote:
> "Steve Gerrard" <mynameh> wrote in message
>
> news:nz2d
>>
>>
>>

> yep i've read those too and many other articles but alas i do not program in
> C.
> i was hoping for something that is easily modifed for my own app. again my
> need is simple. one context menu item with an icon and text. ill keep
> looking.
>
> AGP


The short answer is that you cannot (or rather should not) write shell
extensions using any managed language (VB.Net, C#, etc). Your only
choice is to use an unmanaged language like C++ or VB6 and COM.

See this link for additional information:

[url down]

Chris
Similar Threads
How to change the shell from explorer.exe to custum shell for users and not administrator

Looking to change the default shell explorer.exe with a custom exe file only for the 2 local users i have on the machine and want to leave the administrator account with the...

Unregister a shell extension without killing Explorer

Hi Using a couple of examples on CodeProject.com I've create a nice little shell extension (adds some custom menus for proprietary file types). Everything is working fine,...

The shell was stopped and then restarted. By default, the shell is explorer.exe

Can I delete this file and then restart the computer? I found these two sites with help, but I'm worried about messing up my computer more! [..] [..] Thanks for...

Shell Extension -adding file name/command extension

If these are the wrong NG's for this issue, would someone be so kind as to direct me to the proper one? I have created a couple of Macros for Outlook 2002 (a part of Office...

Shell Extension -adding file name/command extension

If these are the wrong NG's for this issue, would someone be so kind as to direct me to the proper one? I have created a couple of Macros for Outlook 2002 (a part of Office...


All times are GMT. The time now is 04:19 PM. | Privacy Policy