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.