Re: Visual C++ Book
"MrAsm" <mrasm@usa.com> wrote in message
news:c6ot0390liv0iditikf9a7t84bd2463ls8@4ax.com...
On Sat, 31 Mar 2007 16:10:08 GMT, "David Ching"
<dc@remove-this.dcsoft.com> wrote:
As I've said before, it isn't as easy as people think to create your first
WinForms app in C#.
I don't agree. I think it's very easy to build a WinForm app in C#,
using e.g. Visual C# Express 2005.
Of course, if you are an experienced Win32/MFC programmer, you can do
advanced things in MFC and it may be hard to do them in C#. But it is
simply because you don't have enough training in C#/WinForm, not
because C# is harder than C++/MFC (at least, I think so).
All I can tell you is my life experience. In 2002, we debated writing a
control panel application for a widely deployed mouse/keyboard system in
..NET. We decided against the painful cries of the rest of the Engineering
team that .NET was too immature at that point to risk the company bread and
butter. But that is when I first started (trying to) learn C#. Fast
forward to PDC 2005. I became convinced it was time to start to start
learning .NET in earnest. I picked up some C# books and sat down to read
them. There were so many peculiarties that it was like an American hearing
South African English. It was English, but not that you would necessarily
understand it. I ran the 2-click AppWizard you spoke of and created a C#
app with a list box in it and could not fill it with anything.
Then a couple months ago I read the Ivor Horton book, and lo and behold, I
could actually write C++/CLI code that actually made sense the first time.
My listbox filled with something. When I had ^ pointers to things, it was
actually a pointer. When I used '::' it actually meant the namespace. When
I created a destructor and finalizer, those ran without any shocks. I used
the IPWorks POP3 component and replaced 20 lines of code with a couple lines
of code that set a property and made one method call. Things really started
cooking for me with C++/CLI whereas I went nowhere with C#.
It seems other C++ programmers don't have the problem of picking up C# that
I did and maybe wouldn't find C++/CLI to be the great learning tool that I
have. But I'm curious, have you actually *tried* doing something
non-trivial in C#, or have you just read about it?
-- David