-----------------------------------------------------------

New Message on cochindotnet

-----------------------------------------------------------
From: J.K.
Message 3 in Discussion


Hi Praseed,



The factor of managed c++ that clinches the argument for me
is  "Any application that compiles clean with the /TP compiler
option (compile as C++ code) can be compiled with /clr."



In short mc++ is the simplest way to migrate your existing c++ code base
to .NET.  When you consider the amount of code still around in C++,
it doesn't take a lot of imagination to see what people are going to use
to migrate their code. 



This blog entry by Brandon Bray at
http://blogs.msdn.com/branbray/archive/2003/11/07/51007.aspx
provides an interesting viewpoint on the relative positions of the languages C++, C# 
and VB.NET.



The VC++ .NET faq which can be accessed at 
http://msdn.microsoft.com/visualc/productinfo/faq/default.aspx states...



Visual C++ allows you to take full advantage of .NET while at the same time giving you 
the most efficient and easiest way to interoperate with existing code. It also allows 
you to leverage your knowledge of C++ to .NET, rather than having to learn a new 
language. 



What you get is the combination of a language you know and love, a great 
managed-unmanaged interop story, complete .NET support, and .NET features found ONLY 
with Visual C++ (such as IJW, OpenMP, and templates).



You might be interested in Stephen's article "Write Faster Code with the Modern 
Language Features of Visual C++ 2005" located at 
http://msdn.microsoft.com/msdnmag/issues/04/05/VisualC2005/default.aspx



"Visual C++ 2005 has a new syntax for development in .NET that is both elegant and 
powerful. It has new optimization technology that has improved the speed of Microsoft 
products up to 30 percent. It has new compilation modes that ensure Common Language 
Infrastructure (CLI) compliance and verifiability for the Microsoft® .NET Framework, 
and it has new models for interop that provide a seamless merging of the native and 
managed worlds as well as complete control over when these boundaries are crossed. The 
compiler includes an enhanced version of the buffer security check option present in 
the previous two versions, and it includes new security-focused versions of libraries 
in prevalent use by C++ applications. It has support for the OpenMP standard as well 
as for 64-bit platforms, including the Intel Itanium and AMD64 chips.  



And finally my fellow MVP Nishant's take on why one should use managed c++ instead of 
other languages :-) http://www.codeproject.com/managedcpp/cppcliintro01.asp?print=true



Alright, so why would anyone want to use C++/CLI when they can use C#, J# and that VB 
thingie for writing .NET code? Here are the four reasons I gave during my talk at 
DevCon 2003 in Trivandrum (Dec 2003).



1. Compile existing C++ code to IL (/clr magic) 

2. Deterministic destruction 

3. Native interop support that outmatches anything other CLI languages can offer 

4. All those underscores in MC++ are gone ;-) 





Have a nice day,



Jayakrishnan K [MVP - VC++]



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/CochinDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to