简体   繁体   English

Microsoft Visual C ++ 2003、2005-它们是.Net还是不受管理的?

[英]Microsoft Visual C++ 2003, 2005— Are They .Net or Unmanaged?

It's kind of confusing when it comes to Microsoft Visual C++. 当谈到Microsoft Visual C ++时,这有点令人困惑。

How to tell whether a Microsoft Visual C++ project is a .Net project, or a native C++ project? 如何判断Microsoft Visual C ++项目是.Net项目还是本机C ++项目?

Visual Studio 2003, 2005 and 2008 all support both Managed and Native applications. Visual Studio 2003、2005和2008都支持托管和本机应用程序。

In 2008, go to properties on the project, look in the "General" section, and look at the "Common Language Runtime Support" item. 2008年,转到项目的属性,在“常规”部分中,然后在“公共语言运行时支持”项中。

In 2003, it's called "Use Managed Extensions", I think. 我认为在2003年,它被称为“使用托管扩展”。

usually if the switch /clr:xxx is present it is managed code 通常,如果存在开关/ clr:xxx,则它是托管代码

I say usually since if you apply /clr:xxx on unmanaged C++ code you get a warning 我说通常是因为如果在非托管C ++代码上应用/ clr:xxx,则会收到警告

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM