Need help with Creating Icon Handlers

  • Thread starter Thread starter Jmc
  • Start date Start date
J

Jmc

Hi
I need some help with implementing Custom Icon Handlers using c#.
I want to show special icons(that I generate) for various file
extentions.

Lets say for example that I want all bmp images to have the image as an
icon.
I understand that I need to implement the a number of interfaces,
IUnknown, IPersistFile and IExtractIcon (right?).
But how do I actually do that using c#?

Best regards
/Jimmy
 
Hi Jmc,

First of all, you don't need to implement IUnknown because all Interop'ed
framework objects will implement that interface by default.

Here is a link that is the first in a hierarchy of web pages on MSDN
dedicated to information about Interoperability in the .NET Framework and
Visual Studio:

http://msdn2.microsoft.com/en-us/library/ms172270.aspx

Also, I believe you can just use the registry somehow to associate a default
icon with a particular file extension but I'm not sure how to do that.
Maybe someone else could provide that information to you or you could
research it on the web. It's probably really simple and might save you some
headaches if your not familiar with Interop.

- Dave Sexton
 
Thanks Dave
I will check out the link you recomended, the answers are probably
there =)

/Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top