Click to See Complete Forum and Search --> : Why would anyone use C++.NET to write managed code ?


darwen
April 13th, 2005, 06:03 PM
This is a start of a discussion.

Firstly, I come from a C++/MFC background.

I know C++.NET.

I can't understand why anyone would use it for managed code implementation when other languages like C# are available which are better designed for the job.

In fact the primary purpose of C++.NET is to allow managed and unmanaged code to integrate seemlessly.

However with the interop capabilities of C# why do this ?

Why not keep managed and unmanaged code seperate ?

Debugging doesn't work when jumping between managed and native code in C++.NET. Rendering this process useless.

Besides the fact that intellisense is far worse under C++.NET.

And (I know it's a minor point, but if you're doing it all the time it becomes a major point) the seperator character for namespaces in C# is '.' (i.e. period) and in C++ it is ':' (colon).

I know I've started a heated debate here... let's see what develops.

Darwen.

atkin
April 14th, 2005, 03:05 AM
I love c# and i also cant understand why people would use c++.net, so i asked a buddy and he said that the syntax was similar to c++ so the change over to write managed code was __gc and he didnt have to learn the c# syntax. Thats one point.
Interop services is much slower than writing a managed wrapper, I come from a back ground were performance was important and we need a mc++ wrappers for our c++ code and this was consumed by the c# code.
This helps in gaming enviroments were the software is running in real time.
Darwen Im sure you already know this as you a quite a reputable member and as you said "I know I've started a heated debate here... let's see what develops."
you most probably testing people, so did i pass.

steibeldj
April 17th, 2005, 09:19 PM
I'll answer it with another question. Why did Microsoft put out .NET without a Framework? What were they thinking? Yea, I just love starting from the good old GUI days all over again!

Sahir
April 17th, 2005, 09:38 PM
Why did Microsoft put out .NET without a Framework? What were they thinking? It does not have a Framework? :confused: