了解最新的visual c ++ [英] learning about latest visual c++

查看:118
本文介绍了了解最新的visual c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。



我想了解Visual Studio 2010,2012中的Visual C ++是管理还是不管理。



我只想知道在Visual Studio 2010或2012中开发的Visual C应用程序将需要.net框架,或者它将是一个简单的.exe文件,如Visual C 6.

Hello there

I want to understand that the Visual C++ in visual studio 2010, 2012 is managed or unmanaged.

Simply i want to know is that a Visual C application developed in visual studio 2010 or 2012 will require .net framework or it will be a simple .exe file like Visual C 6.

推荐答案

首先,请看我对这个问题的评论。



我假设您想获得有关已编译模块的一些信息( PE文件),因为从源代码中找出你正在查看的项目类型是微不足道的。



Visual C ++允许开发纯粹的非托管可执行模块,纯.NET程序集(完全用C ++ / CLI编写)和混合模式项目。您可以通过以下方式查看是否使用托管代码:编写一个.NET应用程序,该应用程序调用 System.Reflection.Assembly.LoadFrom 并传递可执行文件的名称( 可执行我指的是任何PE文件,而不仅仅是* .EXE)。此调用将抛出该文件的异常,该文件不是有效的.NET程序集。



请参阅:

http://msdn.microsoft.com/en-us/library/1009fa28.aspx [ ^ ],

http://en.wikipedia.org/wiki/Reflection_%28programming%29 [ ^ ],

http://en.wikipedia.org/wiki/Portable_Executable [ ^ ]。



阅读C ++ / CLI:

http://en.wikipedia.org/wiki/C%2B%2B/CLI [<一个HREF =HTTP://en.wikipe dia.org/wiki/C%2B%2B/CLI\"target =_ blanktitle =新窗口> ^ ],

http://www.ecma-international.org/publications/standards/Ecma-372.htm [ ^ ],

< a href =http://www.gotw.ca/publications/C++CLIRationale.pdf> http://www.gotw.ca/publications/C++CLIRationale.pdf [ ^ ],

http://msdn.microsoft.com/en-us/library/xey702bw.aspx [<一个href =http://msdn.microsoft.com/en-us/library/xey702bw.aspxtarget =_ blanktitle =New Window> ^ ]。



-SA
First, please see my comment to the question.

I assume you want to get some information on the already compiled module (PE file), because finding out what kind of the project you are looking at from the source code is trivial.

Visual C++ allows to develop pure unmanaged executable modules, pure .NET assemblies (written entirely in C++/CLI) and mixed-mode projects. You can find out if managed code is used in a following way: write a .NET application which calls System.Reflection.Assembly.LoadFrom and pass a name of your executable file (by "executable" I mean any PE file, not only *.EXE). This call will throw an exception of the file is not a valid .NET assembly.

Please see:
http://msdn.microsoft.com/en-us/library/1009fa28.aspx[^],
http://en.wikipedia.org/wiki/Reflection_%28programming%29[^],
http://en.wikipedia.org/wiki/Portable_Executable[^].

Read on C++/CLI:
http://en.wikipedia.org/wiki/C%2B%2B/CLI[^],
http://www.ecma-international.org/publications/standards/Ecma-372.htm[^],
http://www.gotw.ca/publications/C++CLIRationale.pdf[^],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx[^].

—SA


这篇关于了解最新的visual c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆