Visual Studio 中的 Visual C++Visual C++ in Visual Studio

Visual Studio 2017 编程语言和开发工具有助于开发本机通用 Windows 应用、本机桌面和服务器应用程序、在 Android 和 iOS 以及 Windows 上运行的跨平台库、在 .NET Framework 上运行的托管应用。The Visual Studio 2017 programming language and development tools help you develop native Universal Windows apps, native desktop and server applications, cross-platform libraries that run on Android and iOS as well as Windows, and managed apps that run on the .NET Framework.

本文档的适用对象?Who is this documentation for?

此内容适用于正在编写程序的 C++ 开发人员。This content is for C++ developers who are writing programs.

  • 如果要查找 C++ 可再发行包和运行时组件以便能够运行程序,请转到 Microsoft 下载中心 ,并在搜索框中输入“Visual C++” 。If you are looking for a C++ redistributable package and runtime components so that you can run a program, go to the Microsoft Download Center and enter Visual C++ in the search box.

  • 如果要查找 C++ 编程概念的简介,请转到众多提供此内容的网站之一,或获取 C++ 的创造者 Bjarne Stroustup 撰写的 Programming -- Principles and Practice Using C++ (Second Edition) 《C++ 程序设计原理与实践》(第二版)的副本。If you are looking for an introduction to C++ programming concepts, go to one of the many websites that offer this content, or get a copy of Programming -- Principles and Practice Using C++ (Second Edition) by the inventor of C++, Bjarne Stroustrup. Visual C++ 内容假设你已基本熟悉 C++。The Visual C++ content assumes you already have a basic familiarity with C++.

  • 如果要查找 Visual C++ 编译器,需从 https://www.visualstudio.com/ 下载 Visual Studio 的付费或免费版本。If you are looking for the Visual C++ compiler, you need to download a paid or free edition of Visual Studio from https://www.visualstudio.com/.

有关 Visual C++ 的常规信息General Information about Visual C++

Visual C++ 的新增功能What's New for Visual C++
查明 Visual C++ 中的新增功能。Find out what’s new in Visual C++.

Visual Studio 2017 中 C++ 的符合性改进了解 Visual Studio 2017 中 C++ 的符合性改进。C++ conformance improvements in Visual Studio 2017 Learn about C++ conformance improvements in Visual Studio 2017.

Visual C++ 语言一致性Visual C++ language conformance
Visual C ++ 中按功能列出的一致性状态列表。A list of conformance status by feature in Visual C++.

Visual C++ 更改历史记录(2003 - 2015)Visual C++ change history 2003 - 2015
了解先前版本中的重大更改。Learn about the breaking changes in previous versions.

欢迎回到 C++Welcome Back to C++
基于可使你快速、安全地编写代码并避免 C 样式编程的多个缺陷的 C++11 和 C++14,了解有关现代 C++ 编程技术的详细信息。Learn more about modern C++ programming techniques based on C++11 and C++14 that enable you to write fast, safe code and avoid many of the pitfalls of C-style programming.

如何使用 Visual C++ 工具集报告问题How to Report a Problem with the Visual C++ Toolset
了解如何针对 Visual C++ 工具集(编译器、链接器和其他工具)创建有效的错误报告,以及提交报告的方法。Learn how to create effective error reports against the Visual C++ toolset (compiler, linker, and other tools), and ways to submit your report.

Visual C++ 移植和升级指南Visual C++ Porting and Upgrading Guide
有关在 Visual Studio 2017 中移植代码并将项目升级到 Visual C++ 的指南,其中包括将 C++ 代码移植到 Windows 10 和通用 Windows 平台。Guidance for porting code and upgrading projects to Visual C++ in Visual Studio 2017, including porting C++ code to Windows 10 and the Universal Windows Platform.

Visual C++ 团队博客Visual C++ Team Blog
详细了解 Visual C++Visual C++开发人员发布的新功能和最新信息。Learn more about new features and the latest information from the developers of Visual C++Visual C++.

Visual Studio 下载Visual Studio Downloads
下载 Visual C++。Download Visual C++.

Visual Studio 版本中的 Visual C++ 工具和功能Visual C++ Tools and Features in Visual Studio Editions
查明不同的 Visual Studio 版本。Find out about different Visual Studio editions.

支持的平台Supported Platforms
查明支持哪些平台。Find out which platforms are supported.

Visual C++ 示例Visual C++ Samples
有关示例的信息。Information about samples.

Visual Studio 社区Visual Studio Community
查明如何获取帮助、报告 Bug,并提出 Visual Studio 建议。Find out how to get help, file bugs, and make suggestions for Visual Studio.

使用 C++ 编写应用程序Writing Applications in C++

通用 Windows 应用Universal Windows Apps
在 Windows 开发人员中心查找指南和参考内容。Find guides and reference content on the Windows Developer Center. 有关开发 Windows 应用商店应用的信息,请参阅 使用 Visual Studio 开发 Windows 应用商店应用使用 C++ 的 Windows 应用商店应用指南For information about developing Windows Store apps, see Develop Windows Store apps using Visual Studio and Roadmap for Windows Store apps using C++.

桌面应用程序 (Visual C++)Desktop Applications (Visual C++)
了解如何创建具有消息循环和回调的桌面应用程序。Learn how to create desktop applications that have a message loop and callbacks.

Visual C++ 中的 DLLDLLs in Visual C++
查明如何使用 Win32、ATL 和 MFC 创建 Windows 桌面 DLL,并提供有关如何编译和注册 DLL 的信息。Find out how to use Win32, ATL, and MFC to create Windows desktop DLLs, and provides information about how to compile and register your DLL.

并行编程Parallel Programming
了解如何使用并行模式库、C++ AMP、OpenMP 以及与 Windows 多线程相关的其他功能。Learn how to use the Parallel Patterns Library, C++ AMP, OpenMP, and other features that are related to multithreading on Windows.

安全性最佳做法Security Best Practices
了解如何保护应用程序免受恶意代码威胁和未经授权的使用。Learn how to protect applications from malicious code and unauthorized use.

云和 Web 编程Cloud and Web Programming
C++ 中有多种选项可使你连接到 Web 和云。In C++, you have several options for connecting to the web and the cloud.

数据访问Data Access
使用 ODBC 和其他数据库访问技术连接到数据库。Connect to databases using ODBC and other database access technologies.

文本和字符串Text and Strings
了解有关处理不同的文本和字符串格式以及针对本地和国际开发编码的信息。Learn about working with different text and string formats and encodings for local and international development.

C++ 开发工具C++ Development Tools

要了解有关如何创建项目、使用源代码文件、链接到库、编译、调试、分析、部署等的信息,请参阅 IDE 和开发工具To find out about how to create projects, work with source code files, link to libraries, compile, debug, profile, deploy, and more, see IDE and Development Tools.

C++ 语言参考C++ Language Reference

有关 C++ 语言的信息,请参阅 C++ Language ReferenceFor information about the C++ language, see C++ Language Reference.

有关 C++ 预处理器的信息,请参阅 C/C++ Preprocessor ReferenceFor information about the C++ preprocessor, see C/C++ Preprocessor Reference.

Visual Studio 中的 C++ 库C++ Libraries in Visual Studio

以下各节提供了有关 Visual C++ 中不同 C++ 库的信息。The following sections provide information about the different C++ libraries that are included with Visual C++.

C 运行时库参考C Run-Time Library Reference
包括用安全性增强的函数来替代已知会引起安全问题的函数。Includes security-enhanced alternatives to functions that are known to pose security issues.

C++ 标准库C++ Standard Library
C++ 标准库。The C++ Standard Library.

活动模板库 (ATL)Active Template Library (ATL)
对 COM 组件和应用的支持。Support for COM components and apps.

Microsoft 基础类 (MFC) 库Microsoft Foundation Class (MFC) libraries
对创建具有传统或 Office 样式用户界面的桌面应用的支持。Support for creating desktop apps that have traditional or Office-style user interfaces.

并行模式库 (PPL)Parallel Patterns Library (PPL)
在 CPU 上执行的异步和并行算法。Asynchronous and parallel algorithms that execute on the CPU.

C++ AMP (C++ Accelerated Massive Parallelism)C++ AMP (C++ Accelerated Massive Parallelism)
在 GPU 上执行的大量并行算法。Massively parallel algorithms that execute on the GPU.

Windows 运行时模板库 (WRL)Windows Runtime Template Library (WRL)
--- --- Windows 8.x 应用商店Windows 8.x Store 应用和组件。 apps and components.

使用 C++/CLI (Visual C++) 进行 .NET 编程.NET Programming with C++/CLI (Visual C++)
公共语言运行时 (CLR) 编程。Programming for the common language runtime (CLR).

另请参阅 STL/CLRC++ Support Library文档。See also the documentation for STL/CLR and the C++ Support Library.

其他 Visual C++ 库Other C++ libraries

本节中包含指向未包括在 Visual Studio 中的库的链接,但可以下载该库并将其用于 Visual C++。This section contains links to libraries that are not included with Visual Studio, but can be downloaded and used with Visual C++.

BoostBoost
一种广泛使用的常用库。A popular and widely-used library.

C++ REST SDKC++ REST SDK.
用于通过 HTTP 与 Web 服务进行通信的 Microsoft 库。A Microsoft library for communicating with web services over HTTP.

更多资源More Resources

Visual C++ 资源Visual C++ Resources
更多 Visual C++ 资源。More Visual C++ resources.

标准 C++Standard C++
了解 C++、获取现代 C++ 的概述,并查找各种书籍、文章、谈话和会议的链接Learn about C++, get an overview of Modern C++, and find links to books, articles, talks, and events

学习 Visual C++Learn Visual C++
开始学习 C++。Start learning C++.

另请参阅See Also

C 语言参考 C Language Reference
C 运行时库参考 C Run-Time Library Reference
编译器内部函数和程序集语言Compiler Intrinsics and Assembly Language