error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT?

前端 未结 7 1540
遥遥无期
遥遥无期 2021-01-14 03:01

what is this Error, and how to resolve it? I am using Visual studio 2005 for Smart device MFC developement, Is upgrading to 2008 can solve my problem.

Error 85 e

7条回答
  •  轮回少年
    2021-01-14 03:39

    There are actually 2 situations I've encountered that lead to this error RC2176.
    As you probably know, a Windows .ICO file can contain multiple images for different sizes and color depth. VS2005 throws this error in at least two situations (unrelated to DIB)

    1. .PNG images in the icon (as described in Codejoy's answer)
    2. 256x256 or larger images in the icon

    By using GIMP to shrink the largest image size to 128x128, and avoiding .PNG, the problem is resolved with VS2005. Or, upgrade to a newer VS ;)

提交回复
热议问题