How do I truly reset every setting in Visual Studio 2012?

Visual Studio has multiple flags to reset various settings: /ResetUserData – (AFAICT) Removes all user settings and makes you set them again. This will get you the initial prompt for settings again, clear your recent project history, etc. /ResetSettings – Restores the IDE’s default settings, optionally resets to the specified VSSettings file. /ResetSkipPkgs – Clears … Read more

How to include libraries in Visual Studio 2012?

Typically you need to do 5 things to include a library in your project: 1) Add #include statements necessary files with declarations/interfaces, e.g.: #include “library.h” 2) Add an include directory for the compiler to look into -> Configuration Properties/VC++ Directories/Include Directories (click and edit, add a new entry) 3) Add a library directory for *.lib … Read more

Why does this C++ snippet compile (non-void function does not return a value) [duplicate]

This is undefined behavior from the C++11 draft standard section 6.6.3 The return statement paragraph 2 which says: […] Flowing off the end of a function is equivalent to a return with no value; this results in undefined behavior in a value-returning function. […] This means that the compiler is not obligated provide an error … Read more

Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview

This MSDN thread explains how to fix it. To summarize: Either disable incremental linking, by going to Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> “No (/INCREMENTAL:NO)” or install VS2010 SP1. Edits (@CraigRinger): Note that installing VS 2010 SP1 will remove the 64-bit compilers. You need to install the VS … Read more