简体   繁体   English

Visual Studio 2015:如何建立针对Visual C ++ v120的ATL专案

[英]Visual Studio 2015: how to build ATL projects targeting Visual C++ v120

I am using Visual Studio 2015 Community Edition. 我正在使用Visual Studio 2015社区版。

In VS2015 installer, selecting Common Tools and MFC Components under the Visual C++ node, I am able to build ATL based projects. 在VS2015安装程序中,选择“ Visual C ++”节点下的“通用工具”和“ MFC组件”,即可构建基于ATL的项目。

Selecting Tools and Windows SDKs, under Windows 8.1 and Windows Phone Tools node, I am able to build MFC projects based on Platform Toolset v120, that is Visual Studio 2013. 选择“工具”和“ Windows SDK”,在Windows 8.1和“ Windows Phone工具”节点下,我可以基于Platform Toolset v120(即Visual Studio 2013)构建MFC项目。

Now I would like to build an existing ATL project, relatively large, originally built in Visual Studio 2013. When I set Platform Toolset = 'v120' in the ATL project, the compiler is unable to find the ATL headers. 现在,我想构建一个现有的ATL项目,该项目相对较大,最初是在Visual Studio 2013中构建的。当我在ATL项目中设置Platform Toolset = 'v120'时,编译器无法找到ATL标头。

Is it possible to install them? 是否可以安装它们? Do I have to install both VS2013 and VS2015? 我是否必须同时安装VS2013和VS2015?

You do need to install the earlier version of Visual Studio if you want to use its compiler toolchain. 如果要使用Visual Studio的编译器工具链,则需要安装早期版本的Visual Studio。 You can also open a developer command prompt to select the compiler version and use msbuild to build the target using that specific compiler but you still need to have installed the compiler version you need. 您也可以打开开发人员命令提示符以选择编译器版本,并使用msbuild使用该特定编译器来构建目标,但仍需要安装所需的编译器版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015:v120 与 v140? - Visual Studio 2015: v120 vs v140? 在Visual Studio 2013中找不到C ++ ATL库(atl.lib和atl120.dll) - Cannot find C++ ATL Libraries (atl.lib and atl120.dll) in Visual Studio 2013 Visual Studio未运行程序,因为它需要v120工具 - Visual studio not running program because it needs v120 tools 如何使用 BatchBuild 并行构建多个 C++ Visual Studio v2015+ 配置 - How can you build multiple C++ visual studio v2015+ configurations in parallel using BatchBuild 如何在 Visual Studio 2015 中使用 mongoose 构建 C++ 项目 - How to build a C++ project using mongoose in Visual Studio 2015 如何在Visual Studio c ++ express 2008中添加WTL和ATL - How to add WTL and ATL to visual studio c++ express 2008 Visual Studio 2015无法创建和编辑c ++项目 - Visual Studio 2015 failed to create and edit c++ projects 使用Visual Studio 2015创建的C ++应用程序分发msvcr120.dll - Distribute msvcr120.dll with a c++ app that was created with Visual Studio 2015 在构建 C++ 项目时,Visual Studio CE 2019 和 Visual Studio CE 2015 之间有什么区别? - What differences are there between Visual Studio CE 2019 and Visual Studio CE 2015 when building C++ projects? 如何在Visual Studio Community 2015中创建“ ATL项目”? - How to create an “ATL Project” in Visual Studio Community 2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM