最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

resources - VC++ exe icon gets name "AAA" instead of its number - Stack Overflow

programmeradmin2浏览0评论

I'm building a Visual C++ project using the Visual Studio build tools and Visual Studio Code. At some point I added an icon to a project using a .rc file:

1 ICON MyIcon.ico

Which I later load using LoadImage(hInst, MAKEINTRESOURCE(1), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR) (and same for the 16×16 one) to put it on the window.

But once the project is built, the icon appears on the exe but not on the window. After digging into the EXE, I found the GroupIcon resource was now named "AAA" instead of 1!

Where does this name come from? I have not defined such a name anywhere in the project... How do I avoid the build tools forcibly putting a textual name on the application icon?

发布评论

评论列表(0)

  1. 暂无评论