Re: Static or Shared MFC DLLs?
- From: Paul <pmlonline@xxxxxxxxx>
- Date: Fri, 5 Jun 2009 07:36:40 -0700 (PDT)
On Jun 4, 1:54 pm, Ajay <ajayka...@xxxxxxxxx> wrote:
On Jun 4, 4:45 pm, Paul <pmlonl...@xxxxxxxxx> wrote:
VS9 is all new to me, so I really don't know what's going on. I just
followed the steps on the following Microsoft web page on a bare bones
MFC app that does nothing. It created a setup.exe that requires the
manifest file for installation, and at it's over 6MB !!
http://msdn.microsoft.com/en-us/library/ms235317.aspx
A six megabyte bare bones app? Something's wrong, right?
If project settings is changed for a MFC shared dll compile, then the
exe (myapp.exe) is about 50KB (0.05MB). If this is copied over to my
XP machine, I get this error, "This application has failed to start
because the application configuration is incorrect." That means there
are missing DLLs.
Yes that meansexactly that. As I mentioned in my earlier reply,
deployment process has changed between the two releases. You just cant
put MFC related DLLs in your directory and expect it to work. You need
to run VC_redistx86.exe to deploy all the dlls Or simply follow the
link I provided.
What I don't get is why does Windows OS even have these DLLs if every
app is including them in their exe? Isn't one purpose of DLLs to
share? So basically, apps should include in the exe every DLL that it
calls even though every XP or Vista OS comes with a satisfactory
mfc*.dll. I wonder if Mac OS is like that.
Regards,
Paul
.
- Follow-Ups:
- Re: Static or Shared MFC DLLs?
- From: Scot T Brennecke
- Re: Static or Shared MFC DLLs?
- From: Giovanni Dicanio
- Re: Static or Shared MFC DLLs?
- References:
- Static or Shared MFC DLLs?
- From: Paul
- Re: Static or Shared MFC DLLs?
- From: AliR [VC++ MVP]
- Re: Static or Shared MFC DLLs?
- From: Paul
- Re: Static or Shared MFC DLLs?
- From: Ajay
- Static or Shared MFC DLLs?
- Prev by Date: Re: Static or Shared MFC DLLs?
- Next by Date: Re: Static or Shared MFC DLLs?
- Previous by thread: Re: Static or Shared MFC DLLs?
- Next by thread: Re: Static or Shared MFC DLLs?
- Index(es):
Relevant Pages
|