Visual Studio C++ Ide



Notice

CBuilderis the full-featured C IDE for building Windows apps five times faster than. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. The Visual Studio Integrated Development Environment (IDE) offers a set of features that help you manage large and small code projects, write and refactor your code, and detect and correct errors by using both static analysis and powerful debugging tools.

Some of the downloads that are mentioned in this article are currently available on My.VisualStudio.com. Make sure to log in by using a Visual Studio Subscription account so that you can access the download links.

If you are asked for credentials, use your existing Visual Studio subscription account or create a free account by selecting 'Create a new Microsoft account.'

Summary

This article lists the download links for the latest versions of Microsoft Visual C++.

Visual Studio 2015, 2017 and 2019

Download the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. The following updates are the latest supported Visual C++ redistributable packages for Visual Studio 2015, 2017 and 2019. Included is a baseline version of the Universal C Runtime see MSDN for details.

  • x86: vc_redist.x86.exe

  • x64: vc_redist.x64.exe

  • ARM64: vc_redist.arm64.exe

Note Visual C++ 2015, 2017 and 2019 all share the same redistributable files.

For example, installing the Visual C++ 2019 redistributable will affect programs built with Visual C++ 2015 and 2017 also. However, installing the Visual C++ 2015 redistributable will not replace the newer versions of the files installed by the Visual C++ 2017 and 2019 redistributables.

This is different from all previous Visual C++ versions, as they each had their own distinct runtime files, not shared with other versions.

Visual Studio 2013 (VC++ 12.0)

  • Download the Microsoft Visual C++ Redistributable Packages for Visual Studio 2013. This is the latest supported Visual C++ redistributable package for Visual Studio 2013.

  • Download Multibyte MFC Library for Visual Studio 2013. This add-on for Visual Studio 2013 contains the multibyte character set (MBCS) version of the Microsoft Foundation Class (MFC) Library.

  • Download Visual C++ 2013 Runtime for Sideloaded Windows 8.1 apps.

For more information, see C++ Runtime for Sideloaded Windows 8.1 apps on the VC++ Team Blog.

Visual Studio 2012 (VC++ 11.0)

Download the Microsoft Visual C++ Redistributable Packages for Visual Studio 2012 Update 4. This is the latest supported Visual C++ redistributable package for Visual Studio 2012.

Visual Studio 2010 (VC++ 10.0) SP1

  • Download the Visual Studio 2010 Service Pack 1 (Installer). This is the latest supported Visual C++ service pack for Visual Studio 2010.

    Note: This web installer requires an internet connection. This installer downloads and installs Visual Studio 2010 Service Pack 1. It works for all editions of Visual Studio 2010 (Express, Professional, Premium, Ultimate, and Test Professional).

  • Download the Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update. This is the latest supported Visual C++ redistributable package update for Visual Studio 2010.

Visual Studio 2008 (VC++ 9.0) SP1

  • Visual Studio 2008 reached end of support on April 10, 2018. To aid the discovery of the latest downloads, the links are retained currently, but may be removed in the future.

  • Download the Visual Studio 2008 Service Pack 1 (Installer). This is the latest Visual C++ service pack for Visual Studio 2008. This service pack improved responsiveness, stability, and performance.
    Note This download installs Visual Studio 2008 Service Pack 1 and Microsoft .NET Framework 3.5 SP1.

  • Download the Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package MFC Security Update. This is the latest Visual C++ redistributable package update for Visual Studio 2008.

Visual C++ Redistributable Packages

C++

Visual C++ Redistributable Packages install runtime components of Visual C++ Libraries on a computer that does not have Visual C++ installed. The libraries are required to run applications that are developed by using the corresponding version of Visual C++.

For Visual Studio 2008

These packages install runtime components of C Runtime (CRT), Standard C++, ATL, MFC, OpenMP and MSDIA libraries. They are installed into the native assembly cache, also known as the WinSxS folder. They are installed on versions of Windows operating systems that support side-by-side assemblies, for libraries that support side-by-side deployment models (CRT, STL, ATL, MFC, OpenMP).

Microsoft Foundation Class Library Security Update

A security issue was identified. This issue causes a Microsoft Foundation Class Library application vulnerability in your Windows-based system that uses the Visual C++ Redist. The Microsoft Foundation Class Library Security Update packages in this article have the most current redistributable files for Visual Studio.

-->

As part of the Visual Studio Integrated Development Environment (IDE), Microsoft C++ (MSVC) shares many windows and tools in common with other languages. Many of those, including Solution Explorer, the code editor, and the debugger, are documented under Visual Studio IDE. Often, a shared tool or window has a slightly different set of features for C++ than for other languages. A few windows or tools are only available in Visual Studio Professional or Visual Studio Enterprise editions.

In addition to shared tools in the Visual Studio IDE, MSVC has several tools specifically for native code development. These tools are also listed in this article. For a list of which tools are available in each edition of Visual Studio, see C++ Tools and Features in Visual Studio Editions.

Create projects

A project is basically a set of source code files and resources such as images or data files that are built into an executable program or library.

Visual Studio provides support for any project system or custom build tools that you wish to use, with full support for IntelliSense, browsing and debugging:

  • MSBuild is the native project system for Visual Studio. When you select File > New > Project from the main menu, you see many kinds of MSBuild project templates that get you started quickly developing different kinds of C++ applications.

    In general, you should use these templates for new projects unless you are using existing CMake projects, or you are using another project system. For more information, see Creating and managing MSBuild-based projects.

  • CMake is a cross-platform build system that is integrated into the Visual Studio IDE when you install the Desktop development with C++ workload. You can use the CMake project template for new projects, or simply open a folder with a CMakeLists.txt file. For more information, see CMake projects in Visual Studio.

  • Any other C++ build system, including a loose collection of files, is supported via the Open Folder feature. You create simple JSON files to invoke your build program and configure debugging sessions. For more information, see Open Folder projects for C++.

Add to source control

Source control enables you to coordinate work among multiple developers, isolate in-progress work from production code, and backup your source code. Visual Studio supports Git and Team Foundation Version Control (TFVC) through its Team Explorer window.

For more information about Git integration with repos in Azure, see Share your code with Visual Studio 2017 and Azure Repos Git. For information about Git integration with GitHub, see GitHub Extension for Visual Studio.

Obtain libraries

Use the vcpkg package manager to obtain and install third-party libraries. Over 900 open-source libraries are currently available in the catalog.

Create user interfaces with designers

If your program has a user interface, you can use a designer to quickly populate it with controls such as buttons, list boxes and so on. When you drag a control from the toolbox window and drop it onto the design surface, Visual Studio generates the resources and code required to make it all work. You then write the code to customize the appearance and behavior.

For more information about designing a user interface for a Universal Windows Platform app, see Design and UI.

For more information about creating a user interface for an MFC application, see MFC Desktop Applications. For information about Win32 Windows programs, see Windows Desktop Applications.

Write code

Visual studio c++ undeclared identifier

After you create a project, all the project files are displayed in the Solution Explorer window. (A solution is a logical container for one or more related projects.) When you click on a .h or .cpp file in Solution Explorer, the file opens up in the code editor.

The code editor is a specialized word processor for C++ source code. It color-codes language keywords, method and variable names, and other elements of your code to make the code more readable and easier to understand. It also provides tools for refactoring code, navigating between different files, and understanding how the code is structured. For more information, see Writing and refactoring code.

Add and edit resources

A Windows program or DLL usually includes some resources, such as dialogs, icons, images, localizable strings, splash screens, database connection strings, or any arbitrary data. Visual Studio includes tools for adding and editing resources. For more information, see Working with Resource Files.

Build (compile and link)

Choose Build > Build Solution on the menu bar, or enter the Ctrl+Shift+B key combination to compile and link a project. Build errors and warnings are reported in the Error List (Ctrl+, E). The Output Window (Alt+2) shows information about the build process.

For more information about configuring builds, see Working with Project Properties and Projects and build systems.

You can also use the compiler (cl.exe) and many other build-related standalone tools such as NMAKE and LIB directly from the command line. For more information, see Build C/C++ code on the command line and C/C++ Building Reference.

Debug

You can start debugging by pressing F5. Execution pauses on any breakpoints you have set (by pressing F9). You can also step through code one line at a time (F10), view the values of variables or registers, and even in some cases make changes in code and continue debugging without re-compiling. The following illustration shows a debugging session in which execution is stopped on a breakpoint. The values of the data structure members are visible in the Watch Window.

C++ Ide And Compiler

For more information, see Debugging in Visual Studio.

Test

Visual Studio includes the Microsoft Unit Test Framework for C++, as well as support for Boost.Test, Google Test, and CTest. Run your tests from the Test Explorer window:

For more information, see Verifying Code by Using Unit Tests and Write unit tests for C/C++ in Visual Studio.

Analyze

Visual Studio includes static code analysis tools that can detect potential problems in your source code. These tools include an implementation of the C++ Core Guidelines rules checkers. For more information, see Code analysis for C/C++ overview.

Deploy completed applications

You can deploy both traditional desktop applications and UWP apps to customers through the Microsoft Store. Deployment of the CRT is handled automatically behind the scenes. For more information, see Publish Windows apps and games.

Best Free C++ Ide

You can also deploy a native C++ desktop to another computer. For more information, see Deploying Desktop Applications.

Visual Studio C++ Best Ide

For more information about deploying a C++/CLI program, see Deployment Guide for Developers,

Next steps

Visual Studio C++ Ide

Explore Visual Studio further by following along with one of these introductory articles: