Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2007

Tip: Looking for answers? Try searching our database.

dependecies for mfc exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 14 Sep 2007 16:54 GMT
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?

Signature

Thanks & Regards,
Alex.

SvenC - 14 Sep 2007 17:19 GMT
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
[quoted text clipped - 8 lines]
>
>     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?sourceid=navclient&aq=t&hl=de&ie=UTF-8&rlz=1T4GGLJ_d
eDE209DE209&q=VC%2b%2b+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
David Wilkinson - 14 Sep 2007 20:53 GMT
> In short: your executable will have a manifest which describes which c++
> libraries are needed. MFC and the VC++ runtime starting with version 8
[quoted text clipped - 8 lines]
> 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.

Signature

David Wilkinson
Visual C++ MVP

Brian Muth - 15 Sep 2007 05:13 GMT
> Or you could use static linking.

which is even easier and reliable.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.