An exe or dll file can contain multiple ICON resources, such as user32.dll in windows and C: \ Windows \ System32 \ imageres in win7. dll files. These ICON resources can be applied to shortcuts, default icons, and so on. They can also be used as a package resource file, so that your program does not need to contain a large number. ico file.
Before creating an image, Let's first look at how to view the ICON resources in the exe or dll;
- Then you can see the identifiable icon in this exe;
- Use the Resource Hacker tool. This tool is a tool for viewing and modifying windows resource files. Open it and drag your files into it. All the icons are displayed on the "icon group" node:
Create a DLL resource file
OK. How can I use Visual Studio to create a resource file? I have tried Resource in C # project. multiple icons are added to resx, but they cannot be viewed after compilation using the above two methods. Later, you can only switch to the C ++ project to solve this problem.
Compile multiple Icon files into the C # Program
Finally, the topic is reached. Our ultimate goal is to compile all resources into the exe file. With the previous step, it is easy.