-
Custom Icon for DLL
Hi,
Is it possible to give some custom icon to a DLL.
So far, I have DllMain and resource (.rc) file with an icon, but
the icon is not used in Explorer for my dll.
At some moment, I changed DLL's extension to .EXE and
here it was: my icon. If I double-click on it, console windows shows for a
moment and exits. Nothing harmfull to computer happens, but I feel
strange with my solution.
(I'll use that DLL with LoadLibrary() so I don't really care about its
extension if LoadLibrary() lets me use it that way - haven't checked
yet - I still hope to find something to change it's icon).
-
You could always give it your own extension and register an icon for that extension.
Customizing Icons
gg
-
If everything else fails... yes, I can always go to registry and do what
it takes. I just wanted to see if there's a way to avoid it: Darg&Drop
install, non privileged users, etc.
-
>> Darg&Drop install, non privileged users, etc
".EXE" is the only mechanism I can think of.
>> but I feel strange with my solution
Me too. ;)
gg
-
OK, I don't know how it's done and if someone can explain it, I'd like to know....but after the install of c++ beta express, the .sln icons are different depending on what version of visual studio it was created and what language it uses, even though they have the same .sln extension
If you can figure that out, then I imagine you could applied that to your DLL icon problem.
-
Creating Shell Extension Handlers
>> I can always go to registry....I just wanted to...avoid it
gg