Win7 安装 VS 2015 运行C++时提示ucrtbased.dll丢失 的解决方法
来源:互联网 发布:ps下载mac免费版下载 编辑:程序博客网 时间:2024/05/18 01:06
This problem is from VS 2015 silently failing to copy ucrtbased.dll (debug) and ucrtbase.dll (release) into the appropriate system folders during the installation of Visual Studio. (Or you did not select “Common Tools for Visual C++ 2015” during installation.) This is why reinstalling may help. However, reinstalling is an extreme measure… this can be fixed without a complete reinstall.
First, if you don’t really care about the underlying problem and just want to get this one project working quickly, then here is a fast solution: just copy ucrtbased.dll from C:\Program Files (x86)\Windows Kits\10\bin\x86\ucrt\ucrtbased.dll (for 32bit debug) into your application’s \debug directory alongside the executable. Then it WILL be found and the error will go away. But, this will only work for this one project.
A more permanent solution is to get ucrtbased.dll and ucrtbase.dll into the correct system folders. Now we could start copying these files into \Windows\System32 and \SysWOW64, and it might fix the problem. However, this isn’t the best solution. There was a reason this failed in the first place, and forcing the use of specific .dll’s this way could cause problems.
The best solution is to open up the control panel –> Programs and Features –> Microsoft Visual Studio 2015 –> Modify. Then uncheck and re-check “Visual C++ –> Common Tools for Visual C++ 2015”. Click Next, then and click Update, and after a few minutes, it should be working.
If it still doesn’t work, run the modify tool again, uncheck the “Common Tools for Visual C++ 2015”, and apply to uninstall that component. Then run again, check it, and apply to reinstall. Make sure anti-virus is disabled, no other tasks are open, etc. and it should work. This is the best way to ensure that these files are copied exactly where they should be.
Note that if the modify tool gives an error code at this point, then the problem is almost certainly specific to your system. Research the error code to find what is going wrong and hopefully, how to fix it.
参考文献:
https://stackoverflow.com/questions/33743493/why-visual-studio-2015-cant-run-exe-file-ucrtbased-dll
- Win7 安装 VS 2015 运行C++时提示ucrtbased.dll丢失 的解决方法
- win7下安装wampserver提示丢失MSVCR100.dll的解决方法
- Win7下安装Visual Stdio 2015后ucrtbased.dll丢失问题
- Win7 sp1下免费安装 Visual C++ 2015编译器及解决运行期缺少ucrtbased.dll
- Visual Studio 2015中ucrtbased.dll丢失
- Visual Studio 2015中ucrtbased.dll丢失
- Visual Studio 2015中ucrtbased.dll丢失
- Visual Studio 2015中ucrtbased.dll丢失
- vs2008安装Qt,提示丢失QtGuid4.dll的解决方法。
- Windows 7 运行VS2015编译的软件提示缺少ucrtbased.dll文件的解决办法
- win7系统下CandenceOrcad16.3安装运行后提示丢失msvcr90.dll
- Win7下安装Visual Studio2015编写VC++,遇到无法找到ucrtbased.dll的问题
- 解决安装OpenGL时程序运行提示glut32.dll丢失的问题
- 安装软件时提示丢失MSVCR.dll,vc++运行库的问题
- 解决运行wamp提示“MSVCR110.dll”丢失(win7 x64)
- 【C++】VS2010生成的程序在安装了vc2010运行库的机器上提示“丢失MSVCR100D.dll”
- 【C++】VS2010生成的程序在安装了vc2010运行库的机器上提示“丢失MSVCR100D.dll”
- C++报计算机中丢失ucrtbased.dll
- Pointers on C——8 Arrays.9
- MFC(一)
- MATLAB中一些命令的含义
- 静态链接库与动态链接库的区别
- Algorithm negotiation fail解决
- Win7 安装 VS 2015 运行C++时提示ucrtbased.dll丢失 的解决方法
- Pointers on C——8 Arrays.10
- Velocity
- 二进制安装mysql
- dos命令登陆mysql命令
- BZOJ4423: [AMPPZ2013]Bytehattan
- JNDI
- iOS开发之Debug之ld: framework not found XXX
- 【今日头条】今日头条三面面经