新手问:哪本书学习C ++ Windows窗体?切换到C#? [英] Newbie asking: which book to learn Windows Forms with C++? Switch to C#?

查看:83
本文介绍了新手问:哪本书学习C ++ Windows窗体?切换到C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的成员,

我刚刚开始使用C ++玩Windows窗体,但是作为两个领域的新手,我正在考虑在浪费太多时间之前阅读一些材料.
我遇到了两个来源:
-查尔斯·皮佐德(Charles Petzold)关于WF的书
-Matthew MacDonald关于C#和WF中的用户界面的书
我的问题:这些书对我有好处吗?只是其中之一?还有其他选择吗?

附带问题:由于大多数书籍都涵盖了WF,因此我应该抛弃C ++并专注于C#吗?

谢谢,
Julio de Melo

解决方案

作为主要经验是C ​​/C ++的人,我会说,如果您是新手,请改用C#. C ++.NET比C#困难得多,如果您打算专注于Windows窗体,那么从长远来看,C#将会更加有用,尤其是当您决定转向WPF,Silverlight或ASP.NET时.

我同意-C ++/CLI是事后的想法,只是个玩笑.学习C#以学习.NET.请注意,很多C#外观都像C ++,但行为却大不相同,尤其是与内存管理有关. IMO最大的陷阱是没有确定性的破坏,并且GC对于内存管理没有用.任何具有Dispose方法的即将超出范围的对象,都需要对其进行调用,以阻止内存泄漏.

我建议此时,您可能想学习WPF而不是winforms.


亲爱的理查德和克里斯蒂安,

谢谢你们的建议.来自像您这样的专家,他们产生了如此深远的影响,昨天我签署了MSDN上的Full E-Reference库,除了将VCEE C#2010添加到我的VCEE C ++安装中之外,我还开始阅读一些有关C#和WPF的资料.

在我看来,这是一个不错的举动,因为它可以访问如此大量的信息资源.而且这也是一笔甜蜜的交易:我只付了


Dear members,

I''ve just started playing with Windows Forms with C++, but being a newbie in both worlds I am thinking of reading some material before wasting too much time.
I came accross two sources:
- Charles Petzold''s book on WF
- Matthew MacDonald''s book on User Interfaces in C# and WF
My question: would I be well served by these books? Just one of them? Any other option?

A side question: should I put aside C++ and focus on C#, since most of the books covers it for WF?

Thanks,
Julio de Melo

解决方案

As someone whose main experience is in C/C++ I would say that if you are new then switch to C#. C++.NET is far more difficult than C# and if you are planning to focus on Windows Forms then C# will be much more useful in the long term, especially if you decide to move on to WPF, Silverlight or ASP.NET.


I agree - C++/CLI is an afterthought and a bit of a joke. Learn C# to learn .NET. Be careful tho, a lot of C# LOOKS like C++, but behaves very differently, especially as it pertains to memory management. The biggest gotcha IMO is that there''s no deterministic destruction, and the GC is useless for memory management. Any object about to go out of scope that has a Dispose method, you need to call it, to stop memory leaks.

I would suggest at this point in time, you may want to learn WPF instead of winforms.


Dear Richard and Christian,

Thank you both for your suggestions. Coming from experts like you they had such an impact that yesterday I signed the Full E-Reference Library from MSDN, where I started to read some material about C# and WPF, besides adding VCEE C# 2010 to my VCEE C++ installation.

It seemed to me like a good move, for having access to such a large source of information. And it was a sweet deal too: I paid just


这篇关于新手问:哪本书学习C ++ Windows窗体?切换到C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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