...id like something I could integrate into my build process: is there anything "standard" tool that does this?
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
- Determine if an executable (or library) is 32 -or
Have you seen Resource Hacker? You can also drive it via the command line (script) so I'm sure it could be incorporated into your build.
I am pretty sure Resource Hacker can do this, and some other things, I believe i recognize its icon from when i used it a while back. Hope that helps you!
Looks like I've found the perfect solution for what I'm trying to do.
You need to create a resource script file (
.rc
), and then compile it to an object file withrc
(.rc
→.res
) andcvtres
(.res
→.obj
). Both tools are included in the Microsoft Platform SDK. When you include the object file into an linker command, the result will have the icon specified in the resource script file. Here's a sample resource file and the commands to create the object:resource.rc:
Your icon file is in the file
my_icon.ico
. Commands to compile these into an object file:But, by far the easiest way to set the program icon is to just do it in Visual Studio.
Technically, neither will allow you to actually change the icon of an existing executable, but somehow I doubt that's what you really want to do.