What does purpose use #ifdef and #if in C++

The meaning of #ifdef is that the code inside the block will be included in the compilation only if the mentioned preprocessor macro is defined. Similarily #if means that the block will be included only if the expression evaluates to true (when replacing undefined macros that appears in the expression with 0). One important point here is that the … Read more

What is “stdafx.h” used for in Visual Studio?

All C++ compilers have one serious performance problem to deal with. Compiling C++ code is a long, slow process. Compiling headers included on top of C++ files is a very long, slow process. Compiling the huge header structures that form part of Windows API and other large API libraries is a very, very long, slow process. To have to do … Read more

What’s the difference between Visual Studio Community and other, paid versions?

There are 2 major differences. Technical Licensing Technical, there are 3 major differences: First and foremost, Community doesn’t have TFS support.You’ll just have to use git (arguable whether this constitutes a disadvantage or whether this actually is a good thing).Note: This is what MS wrote. Actually, you can check-in&out with TFS as normal, if you have … Read more

Unity OnTriggerEnter2D not registering

There are four things I can think of which need to happen so that OnTriggerEnter gets called: The two objects’ colliders need to actually be overlapping. Just because their rendered pixels are overlapping, doesn’t mean their colliders are overlapping. This can be checked in the editor. Their colliders are indicated with a green outline in the Scene tab. If … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since 2015) is a … Read more

‘cannot find or open the pdb file’ Visual Studio C++ 2013

Try go to Tools->Options->Debugging->Symbols and select checkbox “Microsoft Symbol Servers”, Visual Studio will download PDBs automatically. PDB is a debug information file used by Visual Studio. These are system DLLs, which you don’t have debug symbols for.[…] See Cannot find or open the PDB file in Visual Studio C++ 2010