GreatCPP
June 28th, 2002, 05:47 AM
Hi,
What is tha advantage of C# than VC++? Which kind of application we can develope in C# than VC++? Kindly advice me.
Regards
Venkat
jparsons
June 28th, 2002, 07:50 AM
Originally posted by GreatCPP
Hi,
What is tha advantage of C# than VC++? Which kind of application we can develope in C# than VC++? Kindly advice me.
Regards
Venkat
There is really no application that you can develop in C# that you can't develop in VC++. The main different is that C# is what Microsoft referes to as a managed application. This means that you don't have to worry about memory management. Objects are garbaged collected at runtime. This speeds up the development cycle since you're not consantly tracking down memory leaks and what not.
IMHO the biggest advantage for C# over VC++ is not having to deal with the numerous hacks that exist in VC++. Much VC++ including MFC is a great example of hwo badly C++ can be coded. Dealing with bad C++ can be a nightmare.
C# aleviates this process by gettign rid of the things people abused heavily in C++. A prime example of this are macro's. While preprocessor definitions still exist in C#, macros are gone. I found macros to be extremely useful in C and C++ but they are also heavily abused and often made code next to unreadable.
On the other hand since C# runs in a virtual machine it will be slightly slower than C++(in some cases much slower). But the JIT compilers get faster and faster all the time so this speed difference is negligable on most applications.