如何为dll文件设置自定义图标?

发布于 2024-10-02 10:39:50 字数 196 浏览 0 评论 0原文

我已经尝试过: Project Properties >应用>>图标和清单并浏览到我的.ico文件。加载后,图标会出现在框的右侧,但当我构建库时,图标仍然只是默认图标。

那么是否可以在我的库中嵌入一个图标并将其用于 dll 文件本身?

谢谢

I have tried: Project Properties > Application > Icon and Manifest and browsing to my .ico file. The icon appears on the right of the box once its loaded but when I build my library the icon is still just the default one.

So is it possible to embed an icon in my library and use it for the dll file itself?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自找没趣 2024-10-09 10:39:50

你不能,因为 Windows 不会在 dll 中查找图标。这只是为前任做的。

You can't, as windows doesn't look for icons in dlls. That's just done for exes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文