Upgraded C++ DLL project from 2003 to 2005 will not register

Hi,

I have a set of DLL's with 70% the same source code which I created in Visual Studio 2003. I have just upgraded them to VS 2005 and they all build but one always fails to register when built in the IDE. If I remove the '/s' switch from regsvr32 I get the error

regsvr32 'filename' failed - Return Code was 0x80070002

which apparently means 'unable to find file'. The source code hasn't changed but VS 2005 has included something new which causes it to fail to register.


Can anyone give me any ideas on how to find out what is missing, or why it won 't register?

[612 byte] By [rosco2] at [2007-12-24]
# 1

For dlls that use the CRT, the manifest has to be embeded inside the dll in order to be able to find it at registration time. Search MSDN on manifests and dlls, SxS, and you should find more details.

Hope this helps you investigate the issue!

Thanks,

Ayman Shoukry

VC++ Team
AymanShoukry-MSFT at 2007-8-31 > top of Msdn Tech,Visual C++,Visual C++ General...