Re: Forms and VC++
- From: "blangela" <Bob_Langelaan@xxxxxxxxx>
- Date: 17 Nov 2006 13:49:13 -0800
David Wilkinson wrote:
blangela wrote:
Larry - Thank you for your detailed response to my previous reply.
I must admit I am still a little confused on how "straight forward" it
is to create Windows App using CLR/C++. I suspect that I will only
find out by actually trying.
Having said that, some of the posters above state I must still used
"managed C++", while others suggest it is much more straight forward
now in the latest version of VS 2005. Again, a little confusing.
As to why to use C++ over C#, one of the sources referenced above
states (at least for .NET 2003) that native code produced using managed
C++ is more optimized (and quite likely there is less code as well --
which some would argue is also a form of optimization) than when using
a .NET language.
Bob:
First of all, IMHO it would be crazy to teach students the obsolete
"Managed C++" of VS2003. If you are going to teach .NET programming with
C++ it has to be with the new C++/CLI in VS2005. It's mostly the same
functionality, but with a much better notation.
I was not considering teaching the older "Managed C++". I just wanted
to know if it was true that the newer CLI is easier than the older
"Managed C++".
But I also feel that C++/CLI is too complicated a language to teach in
an introductory course. If you are going to teach .NET programming I
think you should give serious consideration to C#.
I was only going to spend a perhaps an hour (or perhaps less by just
providing some screenshots to show how I did it) and then take a
console app. and "dress it up" in a Windows App using the CLI. I
certainly had no intention to try to teach .NET !
I could be wrong, but I think teaching traditional C++ and C# separately
might be less of a challenge to the students than trying to learn
C++/CLI. Because C++/CLI is really just two languages joined together,
and a lot of the difficulty is in the joining.
Again, I only teach C++. We have other courses that teach .NET, Java,
etc.
Perhaps it is true that for high performance .NET applications, C++/CLI
can be faster (or perhaps easier to make fast), but I'm not sure this is
really a consideration for a course.
I only mentioned the above point as an aside. It actually has nothing
to do with my C++ courses. I do know that ISO C++ is much faster than
C# or Java. I work for a consulting company. My client is spending
many millions and millions of dollars to develop a SDK for their cell
phones so that companies like EA will be able to write games in C++
(not Java or C# ) to run on their phones, even though Java games can
already run on their phones! Why? Performance! Also, I know one of
the chief instructors at EA, and he tells me that they have no plans to
move to Java or C# for at least the next 20 years. Performance is just
too important to a company like EA!
Thanks for your help!
Bob
David Wilkinson
.
- References:
- Forms and VC++
- From: blangela
- Re: Forms and VC++
- From: Larry Smith
- Re: Forms and VC++
- From: blangela
- Re: Forms and VC++
- From: Larry Smith
- Re: Forms and VC++
- From: blangela
- Re: Forms and VC++
- From: David Wilkinson
- Forms and VC++
- Prev by Date: Re: Run-Time Check Failure #2 in VS2005: Compiler bug?
- Next by Date: Re: Conditional compilation in complex project hierarchy
- Previous by thread: Re: Forms and VC++
- Next by thread: Re: Forms and VC++
- Index(es):
Relevant Pages
|