Re: Static or Shared MFC DLLs?



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
.



Relevant Pages

  • Re: C# Exceptions
    ... I did a runtime analysis of the exe and some important DLLs as ... > signature is valid then the app can decrypt the response and process it. ... > the source code of a managed app. ... NOT FOR THE MAIN PROGRAM EXE FILE. ...
    (Pen-Test)
  • Re: Remoting and ilmerge
    ... I am seeing my remoting app fail with this error when I use ilmerge ... to repackage the exe and dlls as one exe. ... I think once you merge the DLLs together, ...
    (microsoft.public.dotnet.framework.remoting)
  • Deploying files not in the project
    ... I have a generic "Wizard-like" app that I use to run my applications. ... except that the EXE doesn't directly use any of the DLLs ... only states which files to deploy and then specifies the EXE as the app to ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: NewObject and unregistered COM
    ... Build EXE ou APP ... > I can access any class inside any library without registering it as COM, ... > Works if I build an EXE or an APP, but not for DLLs? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: private Deploy of SQL CE 3.1
    ... my app is always a newer one than whatever is in ROM, ... device uses 3.1 dlls. ... All was fine as long as my desktop app was ... I also found that in Platform builder when I removed "sql mobile" ...
    (microsoft.public.sqlserver.ce)