惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

博客园 - 海阔天

【原创】Self-Contained Container(自包含容器) Kindle 转换器 Win32 多线程学习笔记 海天软件自动安装工具 cd /d %~dp0是什么意思啊? (转)STL vector 容器介绍 . 【转】在VC++下实现高彩色工具条2011-05-19 14:35引言 [转]修改SDI主窗口Title (转)VC中让CListBox带有复选框 (转)电脑程序员才能看懂的笑话 (转)专业的程序员需要具备的思考能力:写一个程序需要注意多少细节问题 (转)另一篇:VC导出数据到EXCEL (转)我的10个开发原则 [转]STL中map用法详解 [转]创业前应先做出一个好的非盈利产品 单元测试 版本控制 VC编程心得 (原创)日志处理(修改)
vc编译错误pass it through SDKPAINT的处理方法
海阔天 · 2011-11-04 · via 博客园 - 海阔天

vc编译错误pass it through SDKPAINT的处理方法

在使用网上提供的图标给VC6使用,在编译的时候会提示“Error RC2176: old DIB in res\app.ico; pass it through SDKPAINT”,原因是这些图标里使用了压缩来缩小图标的尺寸。

下文的意思就是用IconWorkshop工具,取消图标中的压缩,重新保存图标(图标会大很多),OK!一切搞定!VC6能够编译通过了。

事实就这么简单。。。

Windows Vista? PNG compressed 256x256 icons are supported in Microsoft Visual Studio? 2008. We've tested PNG compressed icons on Visual C++ 6.0 and Visual .NET 2003/2005 and they all reject the icon during the resource compilation:

  Error RC2176: old DIB in res\app.ico; pass it through SDKPAINT

This is unsurprising to us since this new ICO file format introduces a new header which points to raw PNG data. Of course the compiler returns a false error message. The DIB header is not old, it is PNG. Passing it through SDKPAINT does not help.

Windows Vista? compressed icons have also been reported as not functioning in the Delphi programming environment. New components will no doubt be developed in the future that identify these shortfalls.

Creating a project using a 256x256 PNG icon with Visual C++ 6.0 and .NET 2003/2005

Create a 256x256 icon with all formats embedded as recommended for Windows Vista?. Save your icon without compressing your 256x256 formats. If your icon already contains PNG compression (like the one we've created in the procedure above), follow this procedure:

1. Open the icon file containing the PNG compressed formats icon in IconWorkshop.

2. On the left side of the document window you see all the formats available. Locate the 256x256 formats which are compressed: A small overlay icon indicating the compression is displayed (error RC2176 : old DIB in res****.ico; pass it through SDKPAINT - 剑雨花心 - 曲郎博客). For each of them, do the following step:

3. Right click on the format (in the list if available formats, not in the editor area). A menu opens, choose "PNG Compressed Image Format (Windows Vista)" to remove the compression.

4. Save the icon. Redo the same procedure for all the 256x256 icons of the project.

Once the icon is saved without compression, work on your project as usual. The compiler will handle the icon images correctly since they are not PNG. When your project is finished and before releasing the program file, follow the procedure below:

1. Open the EXE file containing the uncompressed icon in IconWorkshop.

2. The file opens in a document window with all the embedded icons displayed. Be sure to display all the formats in raw: choose "View/Display Icons/All Formats In Raw".

3. Double-click on the icon you want to compress. It opens in another document window.

4. In the list of available formats (vertical list on left), right-click on the first "256x256 RGB/A" format, a menu opens. Choose "PNG Compressed Image Format (Windows Vista)". A small overlay icon indicating the compression is displayed (error RC2176 : old DIB in res****.ico; pass it through SDKPAINT - 剑雨花心 - 曲郎博客).

5. Repeat step 4 with the other 256x256 image formats (if any).

6. Save the icon "File/Save". Close the icon window.

7. Back in the EXE document window, you see the compression overlay icon (error RC2176 : old DIB in res****.ico; pass it through SDKPAINT - 剑雨花心 - 曲郎博客) displayed on all the 256x256 formats. Repeat steps 3 to 6 for all the other icons containing 256x256 images (if any).

8. Save your EXE document, close the window.

9. You're done! The EXE file size is smaller indicating that the compression is made.