VC ++。NET ???? [英] VC++.NET ????

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

问题描述

嗨伙计们,


我一直在使用vs.net 2003,但是从上周开始我使用MFC就是

。现在,我进入托管C ++和Windows窗体。


我可以说我很困惑,我有一些

问题我希望我可以在这里找到一些答案...


1.首先,我得到了这个问题的答案,但我必须要点b $ b指出这个问题!什么样的c ++编程是在头文件中写下所有的

代码? MS宣布它在vs6之后很长一段时间没有销售新的

产品因为他们正在研究vs.net ???

现在他们说c ++ win froms是由c#人设计的

,因为没有足够的时间????谁会买这个?


2.好的,我注意到vc ++。net的第一件事就是它

compliles并遵守和编译。 ..我会在MFC编译5个
项目和我的vc ++。网络代码仍在编译......是否有一个

的原因????


3.而我的另一个主要问题是,自从vb5

后我也是一名vb程序员,当我从vb6升级到vb.net时,我真的很喜欢

vb.net的功能。所有命名空间函数是否都适用于所有语言的相同速度?例如,如果我使用c ++ .net或vb.net编码同一个项目

或使用命名空间和托管代码c#,那么
所有工作都以相同的速度运行,因为他们都使用相同的共享

命名空间???这是我的关注,直到我开始使用vc ++编写.net。

如果是这样的话我为什么要切换到vc ++。net和c ++中的代码,我会
会只需在vb.net中编写代码。


提前致谢,


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查-Secure Usenet News == ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---

解决方案

borhan写道:

嗨伙计们,

我一直在使用vs.net 2003,但自上周以来我一直在使用MFC。现在,我进入托管C ++和Windows窗体。

我可以说我非常困惑,我有一些问题,希望我能在这里找到答案。 。

1.首先,我得到了这个问题的答案,但我必须指出这一点!用什么样的c ++编程来编写头文件中的所有代码? MS宣布在vs6之后很长一段时间没有销售新的
产品,因为他们正在研究vs.net ???
现在他们说c ++ win froms是由c#设计的人们
因为没有足够的时间????谁会买这个?


这已被多次充分涵盖。你完全有资格获得不喜欢的b $ b。

2.好的,我注意到vc ++。net的第一件事就是它
compliles和遵守和编译......我会在MFC和我的vc ++中编译5个项目。网络代码仍在编译......是否有这个原因?


VC7.1编译器无疑比VC6编译器慢,尽管

我会很难相信它的速度要慢5倍。也就是说,我用VB编译托管C ++并没有做太多的事情 - 它有可能是因为它有一个显着的减速所有的元数据加载&

读数继续。这只是一个猜测。

3.而我的另一个主要问题是,自vb5以来我也是vb程序员
当我从vb6升级到vb.net时我是真的很喜欢
vb.net的功能。所有命名空间函数是否都适用于所有语言的相同速度?例如,如果我使用c ++ .net或vb.net或c#使用命名空间编码同一个项目,并且托管代码将以相同的速度工作,因为它们都使用相同的共享
命名空间???这是我的关注,直到我开始使用vc ++ .net编码。
如果是这样的话我为什么要切换到vc ++。net和c ++中的代码,我只需要在vb.net中编码。 / blockquote>


基于您调用它们的语言,基于

的.NET框架类的性能没有区别。对于一个简单的Winforms应用程序,它不太可能你会发现C ++,


请注意,名称空间与任何这些名称无关:名称空间是

只是一种组织10'的机制1000个'的名字存在于

..NET框架中,变成了一些可管理的块。一个类是否在这样的名字和/或者这样的命名空间中根本没有性能影响。


-cd


cd首先感谢您的快速回复和好心,


[quote:0a2e2b7932] VC7.1编译器无疑比
$慢。 b $ b VC6编译器,虽然

我会很难相信它慢了5倍。那个

说,我用VB编译托管C ++没有做太多 - 这可能是


由于所有的元数据加载,这里有一个显着的减速

&

读数继续。这只是一个猜测。

[/ quote:0a2e2b7932]


我觉得我有点过分夸张它,但我在尝试到了
突出了编译时间的延迟让我真的感到非常失望。

这个没有区别.NET框架
类的性能,基于您调用它们的语言。对于一个简单的Winforms应用程序,
你不太可能看到C ++,C#和VB.NET(或JScript.NET或J#或......)之间的性能差异很大。

请注意,命名空间与以下任何内容无关:命名空间
只是一种机制来组织
中存在的10'的1000'名称将..NET框架变成有些可管理的块。一个类是否在这样和这样的命名空间中是
根本没有性能影响。




对这个词的错误表示抱歉。通过说名称空间我是/ b $ b试图表示托管的.net类。所以我得到了答案,所有

托管类对所有语言的工作方式都相同..那么如果c ++,那么

的功能在哪里?如果我使用托管.net类?


感谢您的关注,


欢呼,


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全使用网新闻== ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---


borhan写道:

抱歉这个词的用法。通过说名称空间,我试图表示托管的.net类。所以我得到了答案,所有管理类对所有语言的工作都是一样的..那么如果c ++,那么
的功能在哪里?如果我使用托管的.net类?




功能是C ++一直以来的地方:创建自己的功能更强大

班。如果你的程序只是将一堆

框架类放在一起,那么请使用你最喜欢的语言。


在下一个对于.NET开发,C ++版本将具有一定的优势

。今天有更少(但不是没有)。主要的是

,VC ++允许您在同一个可执行文件中混合本机和.NET代码

(例如从MFC应用程序调用WinForms表单)。没有其他的

..NET语言可以让你这样做。


-cd


Hi folks,

I am using vs.net 2003 for a time, however since last week I was
using MFC. Now, I am into managed C++ and windows forms.

I can say that I am very much confused with it, and I have some
questions I hope I can find some answers here...

1. First of all, I got the answer to this question but I have to
point that out! What kind of c++ programming is that to write all the
code in the header file ??? MS annnounced that it didn''t market a new
product after vs6 for a long time coz they were working on vs.net ???
and now they say that the c++ win froms was designed by c# people
because there wasn''t enough time???? Who would buy this ???

2. Ok, the first thing that I noticed with vc++.net is that It
compliles and complies and compiles ... I would have compiled 5
projects in MFC and my vc++.net code still compiles... Is there a
reason for this ????

3. And my other major question, I am also a vb programmer since vb5
and when I have upgraded from vb6 to vb.net I was really charmed with
the features of vb.net. Does all the namespace functions work the
same speed for all languages?? For example if I code the same project
with c++.net or vb.net or c# using namespaces and managed code would
all work at the same speed coz they all use the same shared
namespaces??? This is my concern till I started to code in vc++.net.
If it is the case why should I switch to vc++.net and code in c++, I
would just code in vb.net.

Thanks in advance,

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

解决方案

borhan wrote:

Hi folks,

I am using vs.net 2003 for a time, however since last week I was
using MFC. Now, I am into managed C++ and windows forms.

I can say that I am very much confused with it, and I have some
questions I hope I can find some answers here...

1. First of all, I got the answer to this question but I have to
point that out! What kind of c++ programming is that to write all the
code in the header file ??? MS annnounced that it didn''t market a new
product after vs6 for a long time coz they were working on vs.net ???
and now they say that the c++ win froms was designed by c# people
because there wasn''t enough time???? Who would buy this ???
This has been adequately covered many times. You''re completely entitled to
not like it.

2. Ok, the first thing that I noticed with vc++.net is that It
compliles and complies and compiles ... I would have compiled 5
projects in MFC and my vc++.net code still compiles... Is there a
reason for this ????
The VC7.1 compiler is unquestionably slower than the VC6 compiler, although
I would have a very hard time believing it''s 5 times slower. That said, I
haven''t done much with compiling managed C++ with VC - it''s possible that
there''s a significant slow-down there due to all the meta-data loading &
reading that goes on. That''s just a guess though.

3. And my other major question, I am also a vb programmer since vb5
and when I have upgraded from vb6 to vb.net I was really charmed with
the features of vb.net. Does all the namespace functions work the
same speed for all languages?? For example if I code the same project
with c++.net or vb.net or c# using namespaces and managed code would
all work at the same speed coz they all use the same shared
namespaces??? This is my concern till I started to code in vc++.net.
If it is the case why should I switch to vc++.net and code in c++, I
would just code in vb.net.



There''s no difference in the performance of the .NET framework classes based
on the language from which you call them. For a simple Winforms app, it''s
unlikely you''ll see any significant difference in performance between C++,
C# and VB.NET (or JScript.NET or J# or ...).

Note that namespaces have nothing to do with any of this: namespaces are
simply a mechanism to organize the 10''s of 1000''s of names that exist in the
..NET framework into somewhat manageable chunks. Whether a class is in such
and such namespace or not has no performance implications at all.

-cd


cd first of all thank you for your quick reply and kind interest,

[quote:0a2e2b7932]The VC7.1 compiler is unquestionably slower than
the VC6 compiler, although
I would have a very hard time believing it''s 5 times slower. That
said, I
haven''t done much with compiling managed C++ with VC - it''s possible
that
there''s a significant slow-down there due to all the meta-data loading
&
reading that goes on. That''s just a guess though.
[/quote:0a2e2b7932]

I think I was a bit over exaggerating about it, but I was trying to
highlight the delay in the compiling time that made me really
disappointed.

There''s no difference in the performance of the .NET framework classes based on the language from which you call them. For a simple Winforms app, it''s unlikely you''ll see any significant difference in performance between C++, C# and VB.NET (or JScript.NET or J# or ...).

Note that namespaces have nothing to do with any of this: namespaces are simply a mechanism to organize the 10''s of 1000''s of names that exist in the ..NET framework into somewhat manageable chunks. Whether a class is in such and such namespace or not has no performance implications at all.



Sorry about that missusage of the word. By saying namespaces I was
trying to mean managed .net classes. So I got the answer, all
managed classes work the same for all languages.. So where is the
power if c++ ?? If I use managed .net classes ?

Thanks for your interest,

cheers,

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


borhan wrote:

Sorry about that missusage of the word. By saying namespaces I was
trying to mean managed .net classes. So I got the answer, all
managed classes work the same for all languages.. So where is the
power if c++ ?? If I use managed .net classes ?



The power is where it''s always been for C++ : more power to create your own
classes. If your programs are going to do little more than bolt a bunch of
framework classes together, then use whichever language you like the best.

In the next version of Visual Studio, C++ will have some definite advantages
for .NET development. Today there''s less (but not none). The main thing is
that VC++ allows you to mix native and .NET code in the same executable
(e.g. calling a WinForms form from an MFC applicaiton). None of the other
..NET languages let you do that.

-cd


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

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