Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ and C#
Message
From
26/07/2001 04:37:48
 
 
To
26/07/2001 00:27:25
General information
Forum:
Visual C++
Category:
Other
Title:
Miscellaneous
Thread ID:
00535524
Message ID:
00535567
Views:
9
Winan,

There are a lot of differences, if I had to choose the most important it would be these:-

1] Grammar - C++ and C# have different language grammars. C# is based on the C++ language but its not C++, for example look at the difference between these examples.

C++ Example
#include "iostream"                 

using namespace std;

void main(void)
{
   cout << "Hello from Visual C++";
}
C# Example
using System;

class Sample {
   public static void Main()
   {
   Console.WriteLine("Hello from C#");
   }
}
2] C# runs in a garbage collected (managed) environment, you can still use unmanaged blocks of code however MS don't really encourage this practice in C# or the other .NET languages. Visual C++ has managed extensions allowing it to play in the .NET sandbox, however it is still primarily a C++ compiler and will still allow you to hit the metal directly.

3] The .NET Runtime is designed to give firstclass support for modern component-based programming. C++ only partly provides a solution for this, C# (or more specifically .NET) has direct support for things like events and properties.

Bottom line, there are a LOT of great reasons for continuing with both languages (IMHO) and I could type for ever :-). As for a release date your guess is as good as mine, however MS have said that beta 2 is the last before production? Again its one of those things that they need to take there time on and get right, .NET has a lot going for it and I for one want to use it.

HTH
Neil
Previous
Reply
Map
View

Click here to load this message in the networking platform