Log in

View Full Version : Sice: translation gives wrong signature


Silver
August 13th, 2005, 12:32
Hi all,

I appear to be stumped by a version problem. Fresh install of sice on XP, with Visual C++ 6 already installed. I'm trying to translate the mfc42.dll etc to an NMS so I can work on an MFC app with some semblance of readability. However when I try to translate the dll/pdb to an nms, I get the following error:

Translating file: C:\WINDOWS\system32\mfc42u.dll...
Error: PDB file mfc42u.pdb has wrong signature.

Following this thread for a number of reasons (http://www.woodmann.com/forum/showthread.php?t=5249) I find Soloman's advice:

Quote:
It will be easier to trace MFC applications by making a MFC42.NMS from MFC42.PDB which can be got from VC++ 6 installation.

Load MFC42.NMS into SoftICE, then you can read all the symbols in MFC. Be sure that MFC42.DLL matches MFC42.PDB.


Clearly I have somehow arrived with a mismatching PDB and DLL, except I don't understand how. I've done this before with the same setup & copy of VC6, and it's worked. So why this time do I have a "wrong signature" - which I assume translates to version mismatch. I'm guessing that I've installed something extra or done something in a different order, causing the DLL's to be updated and thus out of sync with the PDB's. But I'm unsure how to track down the right versions...

All help appreciated, I'm getting annoyed trying to nail the one single MFC call that enables a button through all the ordinals

Thanks.

naides
August 13th, 2005, 13:19
naive question:

You are asking about MFC42.dll, but your error message reports MFC42U.dll is that an overlook?

other issues to consider:

There are several, at least 4 versions of MFC42.dll
A lot of apps bring with them and install their own versions. Try searching for mfc42.dll in your hard drive(s) and you will see you have many of them, and sometimes they are not compatible. that may be what Sice is complaining about.

lastly, you can search and download mfc42.pdb and mfc42.nms files directly from then net, at least one may work for you.

Silver
August 14th, 2005, 08:03
Thanks naides, I think I wasn't clear with my original question. In a sentence: how do I locate the correct versions of mfc42.dll and .pdb so that they work together? There seems to be no obvious way to do so, apart from randomly trying combinations...

TQN
August 14th, 2005, 20:25
Hi Silver, try with symchk.exe /v <Path>\mfc42.dll.
Regards,

Silver
August 15th, 2005, 10:16
That fixed it, thanks. Incidentally there's a new "debugging tools..." pack released a few days ago.