How to Determine Required Visual C++ Redistributables for a Given DLL
If you have been provided a dll, and are unsure which Visual C++ Redistributables are required, the following are some methods to determine this:
-
Ask the DLL provider
-
Use the Depends Dependency Walker utility (see instructions below)
-
Send the DLL to the MHI support desk (support@mhi.ca), to see if we can determine this. Ensure to provide your PSCAD license number in your request (may be determined as per this article).
Using the Depends Dependency Walker utility
-
Download the Dependency walker (32-bit) from this link:
http://www.dependencywalker.com/depends22_x86.zip -
Unzip to a folder called \Depends_32, after which you should have these 3 files:
-
Download the Dependency walker (64-bit) from this link:
http://www.dependencywalker.com/depends22_x64.zip -
Unzip to a folder called \Depends_64, after which you should have these 3 files:
-
Launch ..\Depends_32\depends.exe
-
Select View | Full paths so that Full paths is enabled (checked)
-
Drag the DLL into the Dependency Walker application, and it will look something like this:
- Look for files similar to format: MFCxxx.dll, VCRUNTIMExxx.dll, then use our compatibilities chart to determine the version.
For example, in the above screenshot, the following versions have been determined:
c:\windows\system\32\MFC140U.DLL
c:\windows\system\32\VCRUNTIME140.DLL
- According to Chart 1.d of this manual, version “140” corresponds to Visual C++ 2015 Redistributables: