开发者

How to set the icon of a dll?

开发者 https://www.devze.com 2023-01-27 06:39 出处:网络
I would like to add icon to the dll . I added the icon in resource file as IDI_ICON1ICON\"icon1.ico\"

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消