Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

C# and C++.Net?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Developer - 02 Jun 2005 08:47 GMT
What is the difference between C# and C++.Net?  Sorry for the lame question,
but I have been trying to figure out the difference.  Which one is better to
use for commercial applications?

Thanks for helping me understand!...
Nishant Sivakumar - 02 Jun 2005 11:35 GMT
Once VC++ 2005 is out, C++/CLI lets you do everything C# does + lots more
(managed templates, mixed mode, STL.NET, stack semantics etc.)

But since C++/CLI is still in beta, currently it's C# that'll get you a job.

Signature

Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com

> What is the difference between C# and C++.Net?  Sorry for the lame
> question,
[quoted text clipped - 3 lines]
>
> Thanks for helping me understand!...
Peter van der Goes - 02 Jun 2005 14:58 GMT
> What is the difference between C# and C++.Net?  Sorry for the lame
> question,
[quoted text clipped - 3 lines]
>
> Thanks for helping me understand!...

A major difference between the languages is that C# is strictly tied to .NET
whereas C++ is not. Using C++, you have the ability to develop applications
that are completely independent of the .NET Framework. In Visual Studio,
you'll note many templates available for C++ which are not dependent on the
.NET Framework (Win32 and MFC, etc.) where C# templates all depend on .NET.
So, the question becomes what *kind* of commercial applications are we
talking about?
If you're talking about .NET applications, Nishant's comments apply, and you
should especially note that VS 2005 brings major new features for C++ .NET
development.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

Carl Daniel [VC++ MVP] - 02 Jun 2005 15:15 GMT
> What is the difference between C# and C++.Net?  Sorry for the lame
> question, but I have been trying to figure out the difference.  Which
> one is better to use for commercial applications?

They're two different languages, both descended from C.

Which one is better depends on who's using them.  If you know neither, then
you should probably use C#, since it's easier to learn and harder to shoot
yourself in the foot.

C++ is the only .NET language that can produce both native (x86) and managed
(IL) code and transition freely between the two domains.  If your
application involves a lot of interoperation with existing native code, then
C++ is likely your best choice.

C++ is also the only Visual Studio .NET language that can generate pure
native applications, so if you need to distribute an app with no
dependencies on the .NET framework, then C++ is your only choice (within
VS).

-cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.