I would like to add icon to the dll . I added the icon in resource file as IDI_ICON1 ICON "icon1.ico"
But still when I build the dll , I cannt see icon in the dll.
what else I need to do to show icon for dll.
I am developi开发者_JAVA百科ng dll in VC++.
If you're trying to make the icon show in Windows Explorer, that's impossible.
Explorer (or rather, the shell) will only read icons from the file for EXEs and shortcuts.
All DLL files will have the standard DLL icon, no matter what you do to the DLL.
If you really want to, you can edit the registry to make the shell (on your machine only) read icons from (all) DLLs the same way it does for EXEs, but I wouldn't recommend it.
精彩评论