c++ - 如何将图标分配给 Windows(或 Visual Studio)上的可执行文件

标签 c++ windows visual-studio icons

<分区>

我想在 Windows (XP) 上为可执行文件使用自定义图标(.ico 文件)。 可执行文件是一个由 visual studio (2008) 创建的 C++ 程序。

如何将图标从可执行文件更改为我想要的 .ico 文件?

最佳答案

评论里有提到,是一个duplicate question

这是 Jason Stevenson 的答案的复制粘贴:

First go to Resource View (from menu: View --> Other Window --> Resource View). Then in Resource View navigate through resources, if any. If there is already a resource of Icon type, added by Visual Studio, then open and edit it. Otherwise right-click and select Add Resource, and then add a new icon.

Use the embedded image editor in order to edit the existing or new icon. Note that an icon can include several types (sizes), selected from Image menu.

Then compile your project and see the effect.

关于c++ - 如何将图标分配给 Windows(或 Visual Studio)上的可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4213938/

相关文章:

c++ - 一个重载函数,但程序并不这样认为

c++ - FFMPEG:多线程解码死锁?

c++ - 找出参数是constexpr

c++ - CreateProcess 和重定向输出

git - Visual Studio 团队资源管理器显示的更改实际上并不存在

c# - "Temporarily Work Uncontrolled"能让我安全地保留 VSS 源代码控制吗?

c++ - 如何在不卡住线程/应用程序的情况下减慢方法执行速度?

django - 由于未知原因无法使用 pipenv 安装 Django(但可以使用 pip)

windows - 如何找到 Windows SDK 的 SetEnv.cmd/SetEnv.cmd 不能正常工作

.net - System.BadImageFormatException : How to fix . NET 版本不匹配?