Re: which operating systems support MFC71*.dlls ?



Of the over two dozen DLLs that appear to be linked into one of my applications (27, to be
exact), static linking would eliminate two. Since some of these are GDI32, KERNEL32
USER32 and ADVAPI, we are now down to 21 DLLs. Most of these are on the redistributable
list, and therefore they, too, cannot be assumed to exist on the target machine. The myth
that copy==install persists, but it has been obsolete for at least 15 years.
joe

On Fri, 20 Apr 2007 22:19:18 GMT, MrAsm <mrasm@xxxxxxx> wrote:

On Fri, 20 Apr 2007 12:18:02 -0700, rgs424
<rgs424@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

How
do I know which operating systems I can install the new .exe on without
having to install/copy over the MFC71*.dlls ?

If you use static linking (and not dynamic linking), you will not have
this problem.

You might consider use static linking (or you might consider migrating
to ATL/WTL that have no MFC DLL dependency).

MrAsm
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: static linking VS dynamic use of MFC dlls
    ... > what are the pros and cons on statically linking MFC library?? ... > I did, as well as including the Msvcr71.dll in installer project, but ... Or just stick to static linking? ... The only situation in which the MFC DLLs have any advantage is if you are ...
    (microsoft.public.vc.mfc)
  • Re: How to Deploy MFC only based application?
    ... They understand the limitations of static linking very well, because if they do not their application will not even run on the development machine. ... DLLs, it won't. ... I have used static linking for many years, using a very simple installer ... simple as copying the exe files to their destination directory. ...
    (microsoft.public.vc.mfc)
  • Re: C++ Version 6 app using c++ version 8 dll
    ... I don't have a lot of troubles with DLLs either, but I'd sure use static code wherever I could just to not have to hassle with one more file to install or manage. ... I did static link MFC in one small application that I put on a CD and/or DVD to restore files, but I didn't want it to have to be installed to run and that worked out really well. ... Its all static linking from now on. ...
    (microsoft.public.vc.mfc)
  • Re: CString Access Viloation
    ... Problems like this are standard under such conditions, ... static linking when DLLs are involved is exceptionally hazardous. ... It gets the CString fine, a comma separated list, and I ...
    (microsoft.public.vc.mfc)
  • Re: .net or mfc?
    ... The problem with static linking is that it eliminates two of the two dozen DLLs that have ... so there is very little saving. ... Studio on the target machine ...
    (microsoft.public.vc.mfc)

Loading