How to resolve file being used by another process?

There are a bunch of questions on SO related to this, all with suggestions and recommendations for solving the issue. For me, none worked until I found this one. In short, if it’s the System Process locking the file, and you have the Application Experience service stopped, restart it. Seriously.

What is the return type of sizeof operator?

C++11, §5.3.3 ¶6 The result of sizeof and sizeof… is a constant of type std::size_t. [ Note: std::size_t is defined in the standard header (18.2). — end note ] You can also do a quick check: which correctly outputs 1 on my machine. As @Adam D. Ruppe said in the comment, probably the compiler does not complain because, since it already knows the result, … Read more

The project type is not supported by this installation

edit please see the answer further down, which is about 18 months newer, and actually solves the problem. This historically once-accurate answer is no longer as accurate. Leaving intact after the break for this reason. – thanks – jcolebrand What edition of VS do you use? VS2008 Express, Standard, Pro or Team System? VS2010 Professional, Premium or Ultimate? … Read more

Convert C++ program into assembly

See the answers to this question: There are several approaches: You can normally see assembly code while debugging C++ in visual studio (and eclipse too). For this in Visual Studio put a breakpoint on code in question and when debugger hits it rigth click and find “Go To Assembly” ( or press CTRL+ALT+D ) Second … 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