MSVCP140.dll missing

Either make your friends download the runtime DLL (@Kay’s answer), or compile the app with static linking. In visual studio, go to Project tab -> properties – > configuration properties -> C/C++ -> Code Generation on runtime library choose /MTd for debug mode and /MT for release mode. This will cause the compiler to embed … Read more

Visual Studio 2015 or 2017 shows IntelliSense errors but solution compiles

I had thousands of intellisense errors and 0 build errors. After deleting .suo file and restarting VS intellisense errors are gone. Suo file is located relatively to source in: .vs\SolutionName\v14\.suo According to comment: Beware that *.suo is a hidden file. Edit: According to comments, VS2017 has the same issue, so you can use similar solution: … Read more

unresolved external symbol __imp__fprintf and __imp____iob_func, SDL2

I have finally figured out why this is happening ! In visual studio 2015, stdin, stderr, stdout are defined as follow : #define stdin (__acrt_iob_func(0)) #define stdout (__acrt_iob_func(1)) #define stderr (__acrt_iob_func(2)) But previously, they were defined as: #define stdin (&__iob_func()[0]) #define stdout (&__iob_func()[1]) #define stderr (&__iob_func()[2]) So now __iob_func is not defined anymore which leads … Read more

How do I diagnose and fix a Visual Studio (for example 2015, 2017) crash?

To diag Visual Studio crashes, you need to generate a crash dump, which includes the current state of Visual Studio. To generate such a crash dump, you can configure Windows Error Reporting to generate dumps by running regedit.exe, go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\devenv.exe create a string DumpFolder and give it a name like C:\localdumps and … Read more