We help IT Professionals succeed at work.

MFC Distripution

I created a small MFC dll that links dynamically the MFC runtime environment. What are the names of the MFC runtime dll to distripute with my app.

Thank you.
Comment
Watch Question

MFC42.dll is the biggest - comes in at 999K - not small

best way to find dependancies is to use an app called depends.exe - you'll find it under Visual Studio tools - it lists all the dlls that your app requires - not all are redistibutable - see REDISTRB.WRI on your visual studio CD

Commented:
In the case of a small app using MFC, you can usually get a smaller overall distribution if you statically link the MFC libs.  Since only the MFC functions that are actually used are linked in, you get a minimal set.  And if your single EXE file is the only thing in your application, you don't save anything by being able to share the libs between your multiple EXEs.

I've experimented and built MFC statically linked EXEs as small as 24K.  A reasonable MFC app that does something useful is usually in the 500K range.  Not exactly a major concern in these multi-GB disk drives days.

My biggest concern is usually fitting the distribution into 1.4MB and you just can't do this with MFC redistributables.
> My biggest concern is usually fitting the distribution into 1.4MB and you just can't do this with MFC
redistributables.

what about compression? does that help?

Explore More ContentExplore courses, solutions, and other research materials related to this topic.