WIN10 vs2015 compiled programs run in Win7 and other systems (no need to install redistributable)

Source: Internet
Author: User

Recently wrote a new program to do beta testing, in the green version (free installation version) encountered problems, vs2015 do the project is like the previous vs version of the MsvcrXXX.dll and several other runtime libraries are placed next to exe, and then eggs ... , on the Win7 test machine will also be prompted to find this dll:api-ms-win-crt-runtime-l1-1-0.dll, such as

Continue to find this DLL copy next to exe, Pit Dad's scene released, unexpectedly prompted that DLL has a problem-can not locate the program input point ucrtbase.terminate ...

Is the version of the wrong, my machine is a few different sizes of Api-ms-win-crt-runtime-l1-1-0.dll, have tried, or not, this is not a reason ... Then Google down, are said to install vs2015 redistributable or KB2999226 update (WIN10 Universal CRT, not win10, other Win7 and other systems to support the Universal CRT program), Try to dress the next redistributable pack to half report undefined error (0x80240017) ... O (≧ mouth ≦) O, and this is also a departure from the green version of the original intention, continue to study it.

Later notice that api-ms-win-crt-runtime-l1-1-0.dll with a heap of api-xxx DLL, may be connected, simply the entire directory all DLLs are copied to EXE , unexpectedly can start O (∩_∩) o

Note: I am using the DLL in the WIN10 SDK, the specific directory in C:\Program Files (x86) \ Windows Kits\10\redist\ucrt\dlls\x86 , Different machine catalogs may be slightly different. In addition, my program is 32-bit, so is the x86 folder, if it is 64-bit and so can be used under Windows kits\10\redist\ucrt\dlls the corresponding folder DLL.

A careful look at the copy of the DLL in the past there is also a call Ucrtbase.dll, and the entry point that the error has a relationship, after the deletion did report a second mistake ... Good pit Daddy Ah, why other people are reported lost DLL, you are the report can't find the entry point (and another existing DLL), so I struggled for so long, regardless of how finally found to make VS2015 program green version of the correct posture-in addition to the previous MSVC Runtime Library of multiple DLLs, It is also possible to put multiple DLLs associated with the WIN10 Universal CRT to the EXE.

PostScript: With Procexp and looked at the green version of the program on the WIN10 machine load DLL list, unexpectedly did not api-xxx that heap dll, none, it seems that those DLLs are really just for other systems running WIN10 Universal CRT program, WIN10 itself does not need to load those DLLs because of its native support.

WIN10 vs2015 compiled programs run in Win7 and other systems (no need to install redistributable)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.