Compile multiple Icon files into the C # Program

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.