Creating Shell Extensions in C#.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I'm trying to create a Shell Namespace Extension in C#, but I'm kind of stuck.

I'm using the framework at "http://www.dcooney.com/wiki/?NamespaceExtension"
to create the Namespace, and I can see that. I can see the folders I have
asked it to create when I double click, except they are missing names, they
just show up blank.

I can't even get the MSDN Magazine article (?? Jan 2004) to do anything.

I'm using VC# 2005 Express, which I have heard can't do it all, but it seems
it can. I think I'm probably doping something wrong, but I dunno what!

I can't get the samples included with the aforementioned framework to run as
expected.

Any help from anyone would be *most* appreciated.

Chris
 
cjsoftuk schreef:
Hello,
I'm trying to create a Shell Namespace Extension in C#, but I'm kind of stuck.

I'm using the framework at "http://www.dcooney.com/wiki/?NamespaceExtension"
to create the Namespace, and I can see that. I can see the folders I have
asked it to create when I double click, except they are missing names, they
just show up blank.

I can't even get the MSDN Magazine article (?? Jan 2004) to do anything.

I'm using VC# 2005 Express, which I have heard can't do it all, but it seems
it can. I think I'm probably doping something wrong, but I dunno what!

I can't get the samples included with the aforementioned framework to run as
expected.

Any help from anyone would be *most* appreciated.

Since you said *any* help is appreciated, i'd recommend NOT to implement
it in managed code... eg:
http://blogs.msdn.com/junfeng/archive/2005/11/18/494572.aspx
 
That's just the encouragement I need.

Please, could you elaborate on this a little and explain how I am supposed
to perform the following *not* using .NET:

I have a Web Application with extension for plugging in other apps.
"My NWBrowse Networks" icon is created in "My Computer"
Upon double clicking that icon, it lists a selection of profiles as folders
(stored locally).
Double clicking on a profile folder, causes the extension to open a web
request to the application to request the root folder.
And then it browses like My Network Neighbourhood.

About 80% of this is easy in Managed .NET, the hard bit is adding the shell
extension.

If I HAVE to use .NET (Which is better/easier for me), how can do it? Or is
it not possible using .NET?


Thanks in advance.

Chris
 
cjsoftuk said:
That's just the encouragement I need.

Please, could you elaborate on this a little and explain how I am
supposed
to perform the following *not* using .NET:

I have a Web Application with extension for plugging in other apps.
"My NWBrowse Networks" icon is created in "My Computer"
Upon double clicking that icon, it lists a selection of profiles as
folders (stored locally).
Double clicking on a profile folder, causes the extension to open a
web
request to the application to request the root folder.
And then it browses like My Network Neighbourhood.

About 80% of this is easy in Managed .NET, the hard bit is adding the
shell extension.

You can do all that from a good old fashioned Win32 app, using WinINet or
WinHTTP to access your web app. Your shell extension is all COM objects -
use ATL to implement or roll your own from scratch. If you need to invoke
SOAP web services from your shell extension, you might consider using ATL
Server, which was recently released as a shared source project on codeplex.
If I HAVE to use .NET (Which is better/easier for me), how can do it?
Or is
it not possible using .NET?

You could create a native shell extension that communicates with a separate
..NET app running in it's own process through sockets, COM, or any other IPC
mechanism. It's not clear to me that .NET is buying you much in this
scenario - but that really depends on how involved the interaction with your
web app is and how much .NET-specific support there is for whatever it is
you need to do.

-cd
 
I've solved the problem, and done it in .NET.

Nice idea, but given that i'm not an MFC/ATL man at all (absolutely hate the
stuff), it'd prefer to stick to .NET!

It's all done, thanks for the help and thread closed.

Chris
 
Hi ,

I just wanted to know how you fixed it.

Can you tell me how to use MSDN Magzine sourse code.
I wanted to know the folder name i have clicked in windows explorer.

Thnaks,

Ashwani Sihag
 
Hi ,

I just wanted to know how you fixed it.

Can you tell me how to use MSDN Magzine sourse code.
I wanted to know the folder name i have clicked in windows explorer.

Thnaks,

Ashwani Sihag

If you tell us which source code is giving you trouble and provide a link,
then you'll get good suggestions.
 
Back
Top