[{"data":1,"prerenderedAt":388},["ShallowReactive",2],{"en-post-83":3},{"id":4,"title":5,"body":6,"description":12,"extension":381,"meta":382,"navigation":383,"path":384,"seo":385,"stem":386,"__hash__":387},"content/post/83.md","83",{"type":7,"value":8,"toc":370},"minimark",[9,13,18,86,90,93,108,111,115,121,137,141,184,188,204,208,215,238,255,259,277,281,352,356,366],[10,11,12],"p",{},"You download a game, an editor, or a dev tool, double-click it, and a popup says \"The code execution cannot proceed because MSVCP140.dll was not found\" or, more directly, \"The application was unable to start correctly (0xc000007b)\". Almost all of these errors come down to a missing runtime library or a bitness mismatch. Your system is not broken. Walk through the steps below and you can fix most of them.",[14,15,17],"h2",{"id":16},"_1-read-the-symptom-first","1. Read the symptom first",[19,20,21,34],"table",{},[22,23,24],"thead",{},[25,26,27,31],"tr",{},[28,29,30],"th",{},"Message you see",[28,32,33],{},"What it usually means",[35,36,37,46,54,62,70,78],"tbody",{},[25,38,39,43],{},[40,41,42],"td",{},"MSVCP140.dll / VCRUNTIME140.dll / msvcr120.dll was not found",[40,44,45],{},"Missing Visual C++ runtime",[25,47,48,51],{},[40,49,50],{},"The application was unable to start correctly (0xc000007b)",[40,52,53],{},"Usually a 32-bit vs 64-bit DLL mismatch",[25,55,56,59],{},[40,57,58],{},"The application has failed to start because its side-by-side configuration is incorrect (0xc000142)",[40,60,61],{},"Wrong or missing VC++ runtime version",[25,63,64,67],{},[40,65,66],{},"api-ms-win-crt-runtime / api-ms-win-crt-*.dll was not found",[40,68,69],{},"Missing VC++ 2015-2022 runtime",[25,71,72,75],{},[40,73,74],{},"d3dx9_43.dll / XINPUT1_3.dll was not found",[40,76,77],{},"Missing DirectX runtime",[25,79,80,83],{},[40,81,82],{},"msvcp140_1.dll / vcruntime140_1.dll was not found",[40,84,85],{},"Missing a newer VC++ 2015-2022 subcomponent",[14,87,89],{"id":88},"_2-the-most-common-cause-a-missing-visual-c-runtime","2. The most common cause: a missing Visual C++ runtime",[10,91,92],{},"Different software is compiled with different years of VC++ (2005, 2008, 2010, 2012, 2013, 2015-2022), and they do not replace one another. The easiest fix is to install a \"Visual C++ Redistributable All-in-One (AIO)\" bundle.",[94,95,96,100],"ul",{},[97,98,99],"li",{},"Download the VC++ bundle from the official Microsoft site and install both the x86 and x64 versions.",[97,101,102,103,107],{},"You can also install just the latest build: ",[104,105,106],"code",{},"winget install Microsoft.VCRedist.2015+.x64"," for 64-bit, plus the x86 build if you run 32-bit programs.",[10,109,110],{},"The big trap. On a 64-bit system, a 32-bit (x86) program still needs the 32-bit runtime. A lot of \"my system is 64-bit, why am I still missing it\" cases come from forgetting to install the x86 build.",[14,112,114],{"id":113},"_3-the-0xc000007b-special-32-bit-vs-64-bit-mismatch","3. The 0xc000007b special: 32-bit vs 64-bit mismatch",[10,116,117,120],{},[104,118,119],{},"0xc000007b"," almost always means a 32-bit program loaded a 64-bit DLL, or the other way around. The order to fix it:",[122,123,124,127,130],"ol",{},[97,125,126],{},"Install the runtime for the correct bitness (see above, install both x86 and x64).",[97,128,129],{},"Reinstall the problematic software and pick the right build; do not install the 64-bit package onto an old program that only wants 32-bit.",[97,131,132,133,136],{},"Do not trust a \"DLL fix wizard\" that force-copies a single DLL into ",[104,134,135],{},"System32","; the mismatch only gets messier.",[14,138,140],{"id":139},"_4-games-or-old-software-add-directx-and-xinput","4. Games or old software: add DirectX and XInput",[94,142,143,162,169],{},[97,144,145,146,149,150,153,154,157,158,161],{},"Missing ",[104,147,148],{},"d3dx9_xx.dll",", ",[104,151,152],{},"d3dx10_*.dll",", or ",[104,155,156],{},"XINPUT1_3.dll","? Install the DirectX End-User Runtime (June 2010); search Microsoft for ",[104,159,160],{},"dxwebsetup",".",[97,163,164,165,168],{},"You can also try ",[104,166,167],{},"winget install Microsoft.DirectX"," where the Store allows it.",[97,170,171,172,175,176,179,180,183],{},"If it is still missing after that, the game's own ",[104,173,174],{},"Redist"," folder usually has it; run the ",[104,177,178],{},"vcredist"," or ",[104,181,182],{},"dxsetup"," inside it.",[14,185,187],{"id":186},"_5-missing-net-framework","5. Missing .NET Framework",[94,189,190,201],{},[97,191,192,193,196,197,200],{},"If the software needs .NET 3.5: Settings > Apps > Optional features > More Windows features, tick ",[104,194,195],{},".NET Framework 3.5"," (includes 2.0 and 3.0), and install while online. If you get ",[104,198,199],{},"0x800F081F",", look into the offline install approach.",[97,202,203],{},"If it needs .NET 4.x, download the matching offline installer from Microsoft.",[14,205,207],{"id":206},"_6-api-ms-win-crt-errors-and-corrupted-system-files","6. api-ms-win-crt errors and corrupted system files",[10,209,210,211,214],{},"If the runtime is installed but you still see ",[104,212,213],{},"api-ms-win-crt-*"," or system components misbehave, run a system repair:",[216,217,222],"pre",{"className":218,"code":219,"language":220,"meta":221,"style":221},"language-cmd shiki shiki-themes github-light github-dark","sfc /scannow\nDISM /Online /Cleanup-Image /RestoreHealth\n","cmd","",[104,223,224,232],{"__ignoreMap":221},[225,226,229],"span",{"class":227,"line":228},"line",1,[225,230,231],{},"sfc /scannow\n",[225,233,235],{"class":227,"line":234},2,[225,236,237],{},"DISM /Online /Cleanup-Image /RestoreHealth\n",[10,239,240,241,246,247,250,251,161],{},"Both commands need to run as administrator. For what the blue screen codes mean, see ",[242,243,245],"a",{"href":244},"/post/20/","Windows Blue Screen Error Codes Explained",". For ",[104,248,249],{},"chkdsk"," and USB or disk errors, see ",[242,252,254],{"href":253},"/post/21/","USB Flash Drive or External Hard Drive Not Recognized",[14,256,258],{"id":257},"_7-three-things-you-should-never-do","7. Three things you should never do",[94,260,261,267,274],{},[97,262,263,264,266],{},"Never download a single DLL from a \"DLL download site\" and overwrite ",[104,265,135],{},". Those sites often bundle malware.",[97,268,269,270,161],{},"Never use a \"one-click DLL repair\" scam tool; it will hijack your homepage and install junk. To tighten system promotions and privacy, see ",[242,271,273],{"href":272},"/post/48/","Turn Off Windows 11 Ads, Recommendations, and Telemetry",[97,275,276],{},"Never blindly reinstall Windows. The root cause is a missing runtime, so a reinstall leaves you in the same place.",[14,278,280],{"id":279},"_8-quick-lookup-table","8. Quick lookup table",[19,282,283,296],{},[22,284,285],{},[25,286,287,290,293],{},[28,288,289],{},"Error you see",[28,291,292],{},"Try first",[28,294,295],{},"Then try",[35,297,298,309,319,330,341],{},[25,299,300,303,306],{},[40,301,302],{},"MSVCP140 / VCRUNTIME140",[40,304,305],{},"VC++ bundle (x86 + x64)",[40,307,308],{},"sfc /scannow",[25,310,311,313,316],{},[40,312,119],{},[40,314,315],{},"Runtime for the correct bitness",[40,317,318],{},"Reinstall the software with the right build",[25,320,321,324,327],{},[40,322,323],{},"XINPUT1_3 / d3dx9",[40,325,326],{},"DirectX End-User Runtime",[40,328,329],{},"Run the game's own Redist",[25,331,332,335,338],{},[40,333,334],{},"api-ms-win-crt",[40,336,337],{},"VC++ 2015-2022",[40,339,340],{},"DISM repair",[25,342,343,346,349],{},[40,344,345],{},".NET related",[40,347,348],{},"Enable or install the .NET version",[40,350,351],{},"Offline installer",[14,353,355],{"id":354},"wrap-up","Wrap-up",[10,357,358,359,179,362,365],{},"About 90% of these popups are a missing Visual C++ runtime or a bitness mismatch; only a few are corrupted system files. Install the official VC++ bundle (both x86 and x64) plus the DirectX runtime first, then try ",[104,360,361],{},"sfc",[104,363,364],{},"DISM",". Never pull files from a DLL download site.",[367,368,369],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":221,"searchDepth":234,"depth":234,"links":371},[372,373,374,375,376,377,378,379,380],{"id":16,"depth":234,"text":17},{"id":88,"depth":234,"text":89},{"id":113,"depth":234,"text":114},{"id":139,"depth":234,"text":140},{"id":186,"depth":234,"text":187},{"id":206,"depth":234,"text":207},{"id":257,"depth":234,"text":258},{"id":279,"depth":234,"text":280},{"id":354,"depth":234,"text":355},"md",{},true,"/post/83",{"description":12},"post/83","Ey4-p6f8Ni1_D1Iska7lBV3oABkYY18eV-gDaXoA4iQ",1794378304342]