c++ - 编辑默认工具栏时的 Microsoft Visual Studio 'Unknown Bitmap Format'

标签 c++ visual-studio visual-c++ visual-studio-2015 mfc

我已使用项目创建向导使用 Microsoft 基础类库 (MFC) 创建了一个应用程序。我创建了一个多文档界面 (MDI) 应用程序。该向导创建您可以使用的虚拟工具栏和菜单。我扩展了默认工具栏,没有任何问题,但是现在当我尝试通过资源 View 编辑它时,我收到“未知位图格式”并且工具栏无法打开。我没有在 Visual Studio 之外更改该文件,因此我不确定导致此问题的原因。当应用程序运行时,工具栏仍然打开并正常工作,只是现在我无法编辑它。 The Error Message

我似乎无法在任何地方找到解决方案。我能找到的唯一其他类似的帖子是在这里 http://www.databaseforum.info/2/8/1e1b848b13ed1254.html但尚未找到解决方案。

最佳答案

我在使用从 GIMP 导出的位图时遇到了同样的错误 - 我发现了这篇文章(我还没有尝试过):

When exporting bitmaps from GIMP, two options must be selected in order for the bitmaps to be compatible with Visual Studio:

  1. Under Compatibility Options, check “Do not write color space information”.
  2. Under Advanced Options, select “R8 G8 B8” under 24 bits.

关于c++ - 编辑默认工具栏时的 Microsoft Visual Studio 'Unknown Bitmap Format',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55257697/

相关文章:

visual-studio-2008 - 在构建期间复制文件

.net - C++\CLI 中的 native winAPI

c++ - 与 friend 一起上课而不是前向声明,: which compiler is correct

C++重载成员函数错误

c# - 如何将按钮添加到 Visual Studio Intellisense

c++ - 显示同一文档的多个同时 View

c - 使用 Microsoft Visual Studio '08 编译 libpng 时如何避免 "error LNK2005:"(已定义的 stdlib 函数)?

c++ - 是否存在乐观的无锁 FIFO 队列实现?

c++ - 隐式转换,如shared_ptr<T>

c++ - Qt 应用程序名称占位符