How to run vs2015 compiled programs in win10 on win7 and other systems (without installing Redistributable), compile the System Perspective pdf

Source: Internet
Author: User

How to run vs2015 compiled programs in win10 on win7 and other systems (without installing Redistributable), compile the System Perspective pdf

Recently, I wrote a new program for beta testing. I encountered a problem when I was doing a green version (no-installation version). The project in vs2015 thought that msvcrXXX was used like the previous vs version. dll also has several other runtime libraries placed next to the exe ..., in win7 testing machine will also prompt to find this dll: api-ms-win-crt-runtime-l1-1-0.dll, such

Continue to find the dll and copy it to the exe. When the trap scene is released, it prompts that the dll has a problem-you cannot locate the program Input Point ucrtbase. terminate...

Is it the version is wrong, I have a few different sizes of api-ms-win-crt-runtime-l1-1-0.dll on the machine, all tried, or not, this is not reasonable... Then Google said that it would install vs2015 Redistributable or KB2999226 updates (Win10 General CRT, not win10, is used by other systems such as win7 to support general crt programs ), I tried to install the Redistributable package and reported an undefined error (0x80240017 )... O (Silicon Valley) O, and this also deviated from the green version's original intention, continue to study it.

Later I noticed that there is a bunch of api-xxx dll in the same directory of the api-ms-win-crt-runtime-l1-1-0.dll, it may be related,All the dll files in the entire directory are copied to the exe.Can Start O (∩ _ ∩) O

Note: I use the dll in the win10 sdk. The specific directory isC: \ Program Files (x86) \ Windows Kits \ 10 \ Redist \ ucrt \ DLLs \ x86The directories of different machines may be slightly different.In addition, my program is 32-bit, so it is an x86 folder. If it is 64-bit, you can use the dll in the corresponding folder under Windows Kits \ 10 \ Redist \ ucrt \ DLLs..

 

Take a closer look at another dll named ucrtbase. dll. Is it related to the error reported at the entry point? After deletion, the second error is indeed reported... Well, I am so confused. Why can't you find the entry point (or another existing dll) when others report the loss of dll, in any case, I finally found the correct way to make the green version of The vs2015 Program-apart from multiple dll files in the previous msvc Runtime Library, you also need to put multiple dll related to win10 universal crt to the exe.

 

Note: I used procexp to read the dll list loaded by the Green Edition program on the win10 machine. I didn't even have the api-xxx dll, it seems that those dll programs are only used for running win10 universal crt programs in other systems. win10 itself does not need to load those dll programs because of native support.

 

Related Article

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.