How can we ensure that we deliver all DLLs required in all Windows variants?

Klaus Dev. Walther 1 Reputation point
2020-08-24T15:45:00.277+00:00

Dear Sir or Madam,

We have been developing an enterprise solution for the kitchen trade for 20 years.

We keep having the problem, that with different Windows versions, especially with older, unpatched operating systems, DLLs are missing. We cannot install the VC-Redist-Package on the computers of our customers, because mostly administrative rights are not available. Therefore we deliver the DLLs in the executable directory.

How can we ensure that we deliver all DLLs required in all Windows variants?

Features of our solution:

  • multibyte
  • shared MFC
  • 32-bit
  • Visual Studio Professional 2019
  • 850,000 lines of program code

Best regards

Klaus R. H. Walther

Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2020-08-25T03:19:02.103+00:00

    If you dynamically link your application to the MFC library, you must redistribute the matching MFC DLL. Because all MFC DLLs use the shared version of the C runtime library (CRT), You may also need to redistribute the CRT.

    For more details I suggest you could refer to the Docs: Redistributing Visual C++ Files and Redistributing the MFC Library

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.