How to compile the big icons (128*128,256*256) for Windows 7 and Vista )?

Source: Internet
Author: User
Windows 7 and Vista icons

Windows 7 and Vista icons contain a high-resolution 256x256 pixel image. These images are specially used for Windows 7 and Vista and they use PNG for compression-based storage. The resolution required by explorer for dynamic re-sampling. Windows 7 and Vista images. The large resolution makes it possible to add an additional effect-projection shadow.

Compile the icons for Windows 7 and Vista

Although a large number of dynamic libraries and executable files in the current Vista version contain compressed icons, Visual Studio's resource compiler (including vs2005) rejects and terminates the following:

Error rc2176: Old DIB in vistaicon. ICO; pass it through sdkpaint

Solution

It is hard to guess how Microsoft solves this problem, but now we need to use an alternative resource compiler or a tool.

Prepare the following tools to handle the problem. It has a very simple command line interface. You can integrate it into your build process as a post-build step. This tool can be replaced or added to an executable file icon, which is implemented using the Windows resource operation API.

Download this tool: replacevistaicon.exe
This toolSource codeYou can search at www.sourceforge.net. If you cannot find it, you can download it from the csdn download resource. Http://download.csdn.net/source/2070373

The tool accepts two to four parameters:

Replacevistaicon.exe executable. dll icon. ICO [icon_id [language_code]

Note: If you have multiple icons of the EXE file, Windows Resource Manager uses the applicationProgramThe first icon of the icon when browsing a folder or in the Start Menu. Compile an XP-compatible icon for your application and use a tool to replace it. Although this tool can be added to a new executable file icon, adding it at the end of the icon list and Windows resource manager will ignore it.

Conclusion

If you use other compiling environments, such as GCC, Delphi, or have experience in compiling Windows 7 and Vista icons, please share your knowledge and add comments.

Google translation is used in this article. We recommend that you refer to the original article http://www.rw-designer.com/compile-vista-iconto avoid incorrect translations.

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.