There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
error RC2176 : old DIB in MFCMapi.ico; pass it through SDKPAINT
Problem: We get this error when trying to compile MFCMAPI in VC 6/VS 2005. Problem started happening after the introduction of the Vista style icon.
"error RC2176 : old DIB in MFCMapi.ico; pass it through SDKPAINT"
Fix: There are solutions out there that involve compiling with a dummy icon, then replacing the icon in the binary using a special tool. I don't like them. The "official, MFCMAPI sanctioned" solution will be this:
1 - Install the latest windows SDK and locate rcdll.dll:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\rcdll.dll
2 - Locate the rcdll.dll used by the resource compiler for your version of Visual Studio and rename it to rcdll.dll.bak:
6: C:\Program Files (x86)\Microsoft Visual Studio\Common\MSDev98\Bin\rcdll.dll
2005: C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\rcdll.dll
3 - Copy the new rcdll.dll from the SDK over where the old one was.
This has been tested with the MFCMAPI project in both VC 6 and Visual Studio 2005 and strangely enough, it works.