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
"Jmc" <jm*****@hotmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
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