[Webinar] Streamline your web hosting managementRegister Today


a release version asks for mfc42d.dll

Posted on 1999-10-25
Medium Priority
Last Modified: 2011-09-20
i have a C++ Dll "A" that uses Dll "B".
i compile them both in release version.
but when i try to use them i am prompted that they can't
find mfc42d.dll / msvcrtd.dll .
how can i finf out why the debug libraries are linked instead of
the release versions.
i looked through the dsp files. but everything looks ok to me.

( Dll "A" is a inproc Com server )
Question by:hed
  • 2
  • 2
  • 2
  • +1

Expert Comment

ID: 2156555
Maybe DLL "A" is loading the debug version of DLL "B". It may have a debug version in its current directory.

Author Comment

ID: 2156614
yes i taught so as well + checked.
and at least the setting of dll "A" are pointing all right. since it's only a wrapping lib it's the same size of the debug version.
can i use some sort of pc elfdump?
LVL 23

Expert Comment

ID: 2156646
Use the Depends utility to check it.
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.


Expert Comment

ID: 2156988
Sorry for that stupid question but...
Did you copy the release DLL to a place where right dll is found?
Normaly we all use for the first test of our program the debug DLL's to make the EXE running we most time copy the DLL to have access. Sometimes if we switch to release version the release DLL's are not copied or the are copied to a place later in DLL Search order.
My be you can check the localisation of the DLL's that are dynamically linked when the exe runs.

Expert Comment

ID: 2157108
The easiest thing is to search for all occurances of the dll and then delete (or rename) all except the release version, to make sure it is being loaded.
Note: the dll loaded will be the one in the application's directory. If there is none there, then it will follow the normal Windows search method for DLL's (windows\system, path).

Author Comment

ID: 2158868
the problem dissapeared. thank you vary much.
i think it was dll b that was a debug version.
most helpful was the depends tool remark because i didn't know this tool so ...
if chensu will publish some answer i"ll be glad to grant him the points. +
are there any other must know about tools that i"m missing ?
LVL 23

Accepted Solution

chensu earned 200 total points
ID: 2160540
Thank you.

You may have a look at the Tools group that Visual C++ or Platform SDK install. There is a handy utility - Error Lookup, which is often ignored.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question