1

Closed

error RC2176 : old DIB in MFCMapi.ico; pass it through SDKPAINT

description

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.
Closed Jul 16, 2009 at 3:45 PM by sgriffin
Fixed in July 2009 Release

comments

emailsync wrote Jul 16, 2009 at 3:59 PM

ha!
Did you see another solution burried in the comments ( http://www.rw-designer.com/compile-vista-icon )?

"Install the latest Microsoft Windows SDK - http://www.microsoft.com/downloads/details.aspx?FamilyID=4377f86d-c913-4b5c-b87e-ef72e5b4e065&displaylang=en
then run VCIntegrate. This should fix the Vista compilation problem"

I haven't tried it, but it looked promising. Anyway, moving right along...