请问ASP.NET支持C ++? [英] Does ASP.NET support C++?

查看:184
本文介绍了请问ASP.NET支持C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我去新建 - > Web站点,在下拉菜单中的语言,只有2种语言:Visual C#和Visual Basic中。没有Visual C ++。也许,我用错了版本的Visual Studio? (我的是9.0.21022)
我试图谷歌这个问题。我发现了一个话题告诉在使用C ++在ASP.NET中是不可能的。但它被张贴在2002年,我希望有什么东西,因为这一年发生变化。 是否有可能用C ++写的ASP.NET应用程序?如果是的话,我可以使用可视化的设计这门语言?

When I go to New -> Web site, in the drop-down menu "Language" there are only 2 languages: Visual C# and Visual Basic. No Visual C++. Maybe, I'm using wrong version of Visual Studio? (mine is 9.0.21022)
I tried to google this problem. I found a topic which tells that using C++ in ASP.NET is impossible. But it was posted in 2002 and I hope that something has changed since that year. Is it possible to write ASP.NET applications using C++? If it does, can I use visual designer with this language?

推荐答案

Visual Studio中生成C#和VB code,这就是为什么它为您提供了只有这些选项,因为视觉设计师从code产生唐T理解C ++。没有什么$ P $从创建使用管理的.NET codeBase的类似系统中的C ++项目pventing你的System.Web。*命名空间,等等。你不会有设计师或code发电机工作你,这对你意味着相对更多的编码;然而,可以说是一个C ++程序员习惯没有大量的视觉设计支持。

Visual Studio generates C# and VB code and that's why it provides you only those options, because the visual designers from which code is generated don't understand C++. There's nothing preventing you from creating a C++ project that uses the managed .NET codebase like the System, System.Web.* namespaces, etc. You won't have the designers or code generators working for you, which means comparatively more coding for you; however arguably a C++ programmer is accustomed to not having a lot of visual design support.

微软使用提供了有关.NET编程的方式的信息C ++

Microsoft provides information about ways of programming .NET using C++.

需要说明的是,你可能无法使用你想使用Visual Studio的版本。最坏的情况是,你使用文本编辑器和命令行调用编译器。

The caveat is you might not be able to use the version of Visual Studio you wanted to use. Worst case scenario is you use a text editor and invoke the compiler from the command-line.

这篇关于请问ASP.NET支持C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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