VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
来源:互联网 发布:俄罗斯共青城现状 知乎 编辑:程序博客网 时间:2024/04/28 14:02
这个其实应该算VS2008的一个bug吧,对于不能识别的资源,添加的时候,VS会弹出一个对话框让你填类型,这个类型其实是字符串表示,而不是像内置类型,是整数。
但是添加PNG图片的时候,它自动识别为PNG,可是实际上VS内部又会把它搞成Bitmap类型,打开RC文件能看见,把BITMAP改成PNG或者任何其他名称,就好了。因为VS不支持PNG图片,包括MS的画图,都不能处理png的透明。所以识别为Bitmap会出错。
当然了,对于png资源,不能用LoadBitmap之类函数加载,而要使用FindResource等资源函数,自己提取二进制字节,类型就是你RC文件里的名称。
VS2008 error RC2170: bitmap file res\xxx.png is not in 3.00 format
编译的时候出现这条错误,打开rc文件发现,
IDR_XXX BITMAP "res\\XXX.png"
把BITMAP修改回PNG后,问题解决。说明:将BITMAP 改为PNG只是相当于告诉编译器这个不是ICO类型的资源是用户自定义资源,如果需要加载资源则需要使用FindResource,去获取资源。
- VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
- VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
- VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
- VS2008 error RC2170: bitmap file xxx.png is not in 3.00 format
- VS2008 error RC2170: bitmap file xxx.png is not in 3.00 format
- VS2008 error RC2170: bitmap file xxx.png is not in 3.00 format(转)
- error RC2170: bitmap file res\XXX.bmp is not in 3.00 format亲身使用解决办法
- bitmap file res\xxx.png is not in 3.00 format
- 关于VS2010error RC2170 : bitmap file res\tmp1.bmp is not in 3.00 format
- bitmap file res\xxx.png is not in 3.00 format 的处理方法
- xxx is not in the sudoers file
- xxx is not in the sudoers file
- xxx is not in the sudoers file.
- xxx is not in the sudoers file
- While reading /Users/xxx img.png pngcrush caught libpng error: Not a PNG file..
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法 SUDO
- 编程之美----子数组的最大乘积
- 中国最假的20句话
- C++11新特性学习笔记
- 无法加载 mysql 扩展,请检查您的 PHP 配置 最新解决办法
- Qt 之路 (03)—你好,世界!(续)
- VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
- C++ 回调函数的简单例子
- 8大你不得不知的Android调试工具
- [MVC] 关于jquery调用PartialView局部刷新的问题
- struts2.3.4.1+hibernate3.6.5+spring3.1.2配置
- J2EE技术规范(五)——JSP(出错页,Forward,Include,标签)
- SQL基础2
- Java高新技术(二)之类加载机制和反射
- linux学习