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++ / May 2006

Tip: Looking for answers? Try searching our database.

What are the advantages of managed C++?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scirious - 25 May 2006 16:58 GMT
People, does the managed version of C++ in VS.NET offer the same facilities
the C# version offer like garbage collection and mamorry management??

Thanks,
Scirious.
William DePalo [MVP VC++] - 25 May 2006 19:22 GMT
> People, does the managed version of C++ in VS.NET offer the same
> facilities
> the C# version offer like garbage collection and mamorry management??

That depends. Instances of managed classes are garbage collected. Instances
of native classes are not.

IMO, it is the fact that you can mix metaphors that makes the language
attractive in interop scenarios.

Regards,
Will
Scirious - 25 May 2006 19:44 GMT
Ok, but what would make me chose to learn C++ instead of C# to use with
.Net?
William DePalo [MVP VC++] - 25 May 2006 20:02 GMT
> Ok, but what would make me chose to learn C++ instead
> of C# to use with .Net?

I didn't say that there would be something. :-)

If C++ is your preferred language, you may want to continue using it to
target the .Net platform. If you are not familiar with either language AND
you wish to target .Net you might was well go with C#. Just my opinion,
YMMV.

Regards,
Will
Sean M. DonCarlos - 25 May 2006 21:49 GMT
> Ok, but what would make me chose to learn C++ instead of C# to use with
> ..Net?

Disclaimer: I've never used C#.

I can think of at least 2 reasons why a developer might prefer C++ over C#:

1. The developer already has experience with C++. Other developers have told
me that C++ and C# are just different enough from each other to drive an
experienced C++ developer batty over the syntax differences. Especially now
that we have C++/CLI instead of those @#$%! Managed Extensions for C++,
continuing with C++ is the path many C++ developers, including myself, have
chosen.

2. The developer needs to be able to interact well between managed and
unmanaged code. C++ can do various interop things that C# can't, starting
with the ability to mix managed and unmanaged code in a single executable.

If you don't fall under either of these categories, I've been led to believe
that C# is somewhat easier to learn than C++ if you don't know either
language.

Sean

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.