Vis Studio 2008: "application failed to start because MFC42D.DLL was not found" problem. Help!!
-
Thursday, May 08, 2008 3:32 PM
I have ported an "old" Vis C++ 6 MFC application to hopefully run under Vista using the latest and greatest Vis Studio 2008
I get a "This application has failed to start because MFC42D.DLL was not found" message when I attempt to start the app.
Configuration Properties --> General --> Project Defaults --> Use of MFC is set to "Use MFC in a static library"
Anyone got any ideas what other settings I should check or where I should start looking to find out why I have this "problem" ??
Answers
-
Tuesday, May 13, 2008 8:42 AM
Hi,
Firstly, As far as I know, DirectX components have no dependency on MFC42D.dll.
Secondly, does your program have dependency on third-party dlls or Dlls written by yourself in VC++ 6.0? If it is, you can use dependency walker to check which Dll has dependency on MFC42D.dll. If you have source code of that Dll, rebuild it with Visual Studio 2008. If you don’t have the source code, you’d better consult the provider for latest version that works with Visual C++ 2008.
Hope this helps!
All Replies
-
Thursday, May 08, 2008 4:35 PM
Your app is linking to some static library that has dependencies on Visual C++ 6.0 components. You need to recompile all your source code, not just your main EXE. And if those are 3rd party components that have the VC6 dependency you'll need to get new ones that work with Visual C++ 2008.
-
Friday, May 09, 2008 3:17 PMThat was my first throught, I'm using dsound.lib, dinput8.lib and dxguid.lib libraries from Microsoft DirectX SDK (March 2008), how can I tell if they are latest and greatest, I sort of assumed they would be.....
-
Tuesday, May 13, 2008 8:42 AM
Hi,
Firstly, As far as I know, DirectX components have no dependency on MFC42D.dll.
Secondly, does your program have dependency on third-party dlls or Dlls written by yourself in VC++ 6.0? If it is, you can use dependency walker to check which Dll has dependency on MFC42D.dll. If you have source code of that Dll, rebuild it with Visual Studio 2008. If you don’t have the source code, you’d better consult the provider for latest version that works with Visual C++ 2008.
Hope this helps!
-
Tuesday, May 13, 2008 11:07 AM
Hi,
Found it. The dependency walker app was a great help!
Many thanks for your help.

