dependecies for mfc exe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I developed an mfc based application. Now, I need to create setup for
this application. Now, I need to finde what are all the supporting dlls/libs
for this application? I checked with dependency walker then created setup
with 5 dlls.

But, it is not working at my test bed. It is giving below error:

Please reinstall your application. It may resolve this issue like
that. this is incorrect application.


How to find the support dlls/libs for an mfc application?
 
Hi Alex,
I developed an mfc based application. Now, I need to create setup for
this application. Now, I need to finde what are all the supporting
dlls/libs
for this application? I checked with dependency walker then created setup
with 5 dlls.

But, it is not working at my test bed. It is giving below error:

Please reinstall your application. It may resolve this issue like
that. this is incorrect application.

How to find the support dlls/libs for an mfc application?

You are using VC++ 2005 right? The web is full with answers, google is your
friend.

http://www.google.de/search?sourcei...z=1T4GGLJ_deDE209DE209&q=VC+++redistributable

In short: your executable will have a manifest which describes which c++
libraries are needed. MFC and the VC++ runtime starting with version 8 (VC++
2005) are installed as side by side dlls in the WinSxS directory (available
with WinXP and above). The loader will not accept a runtime dll loaded from
a different directory when such a manifest is found. Therefore copying the
dlls into the exe directory is not sufficient anymore.

So you either need to use vcredist_x86.exe or the msm files if you build an
msi for your apps setup. Be carefull: if you applied VS 2005 SP1 your
executables will reference the SP1 runtime version so you will need to use
the updates vcredist or msm files.
 
SvenC said:
In short: your executable will have a manifest which describes which c++
libraries are needed. MFC and the VC++ runtime starting with version 8
(VC++ 2005) are installed as side by side dlls in the WinSxS directory
(available with WinXP and above). The loader will not accept a runtime
dll loaded from a different directory when such a manifest is found.
Therefore copying the dlls into the exe directory is not sufficient
anymore.

So you either need to use vcredist_x86.exe or the msm files if you build
an msi for your apps setup. Be carefull: if you applied VS 2005 SP1 your
executables will reference the SP1 runtime version so you will need to
use the updates vcredist or msm files.

Or you could use static linking.

To the OP: This is not the right group for MFC questions.
 
Back
Top