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?