Normally, I would say that you have to install the required redistribution on the target machine, since it is a "clean way". But you can also do it in the style of the 90s. It depends a lot on which CRT / MFC lib you use to build the application. This can be verified in the manifest file. You can also force the application to bind to the specified lib. Without any definition, VS2008 usually associates 9.0.21022.8 with
#define _BIND_TO_CURRENT_VCLIBS_VERSION 1
the latest libraries are taken. You can also contact the specified version:
#define _CRT_ASSEMBLY_VERSION "9.0.30729.1"
and / or
#define _MFC_ASSEMBLY_VERSION "9.0.30729.1"
So, if you want to do this in the style of the 90s, copy the files from C:\Windows\Winsxs\ and take the DLLs from the folder with which you are linked, for example. by amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4 , if you are using a CRT for x64 applications or equivalent x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d for x86-version of the CRT.
Simon linder
source share