Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT

Thanks

like image 772
Bart Avatar asked Dec 17 '22 22:12

Bart


2 Answers

this might help you: http://www.axialis.com/tutorials/vistaicons.html

It looks like vista icons now use PNG headers. The error is slightly false though as its not an old DIB its just a header it doesn't recognize, PNG.

How was that icon created? Long ago Visual C++ 6.0 had its own little way of creating icon .ico files. Probably not using PNG so this might be the way to go is to find some program to emulate that and create an icon using the old DIB way. Or upgrading to 2008 :)

like image 95
Codejoy Avatar answered Dec 19 '22 14:12

Codejoy


Actually there is another way not mentioned here in the other answers.

If you would install and integrate a more recent (same or later release date than VS 2008) SDK with VS 2005, that also resolves it. You can also go to C:\Program Files\Microsoft Visual Studio 8\VC\bin (or your equivalent of the path) and replace the files rcdll.dll and rc.exe with the ones from a more recent VS, WDK or SDK.

Side-note: the version of rcdll.dll and rc.exe must match, that is you need to copy both at once from your source (be it VS, WDK or SDK). For me any version starting with 6.0 or 6.1 worked. That's any version starting from the compilers that accompanied the Vista SDKs and VS versions or later.

like image 24
0xC0000022L Avatar answered Dec 19 '22 14:12

0xC0000022L