Re: "Poll" Has C# Generally Replaced C++

Tech-Archive recommends: Fix windows errors by optimizing your registry



Some have pointed out advantages of C++ which I don't contest. Yet, I am not
sure these are outweighed by other considerations for many .NET development
scenarios.

There are some cases where C++ is the only option: e.g. a pure native
Windows App with no .NET Runtime required.

However for a .NET app, if C++ is on par with C#, then how does one decide
which language to use. Are there any criteria besides being already familiar
with C++ etc.?

I.e. are there any concrete reasons why the full development cycle right up
to delivery will be more cost effective and yield greater ROI using one
language vs. the other?

Thank You


--
Greg McPherran
www.McPherran.com


"Andre Kaufmann" wrote:

> Greg wrote:
> > Is it your general opinion that C# is generally designed/intended/ready to
> > replace C++? I know the answer is not black and white but please repond YES
> > or NO (add any comments if you would like)
> >
> > I just thought it might be interesting to get a tally. This is related to a
> > previous thread. So far we have two NOs from "aa" and Bo Persson.
> >
>
> Yes and no.
>
> IMHO C++ - C++/CLI and C# can be used very effectively together and both
> languages have their pros and cons.
>
> What about if the C# compiler could freely mix both languages in a
> single project e.g. something like 'extern "C++" in C# ;-) and directly
> call the C++/CLI code without using an intermediate DLL or linker tricks ?
>
> If additionally C# would have RAII I would be perfectly happy about this
> combination.
>
> To be real, I think both languages will coexist for a very long time.
> Only if the basis, the operating system and it's main interfaces will be
> managed code too and if the native MSIL compiler will be available I
> think more and more code will be written in plain C#.
>
> Currently I think C# has another focus than replacing C++. But this may
> happen some day.
>
> Andre
>
.



Relevant Pages

  • Re: "Poll" Has C# Generally Replaced C++
    ... I know the answer is not black and white but please repond YES or NO ... languages have their pros and cons. ... the operating system and it's main interfaces will be managed code too and if the native MSIL compiler will be available I think more and more code will be written in plain C#. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Which is better, C# or C++?
    ... .NET development. ... C# is tailored and buildt specifically with .NET in mind, ... version of most other languages are retrofitted to work with .NET. ...
    (microsoft.public.dotnet.faqs)
  • Re: VBA vs. Managed Code in Project 2007
    ... Managed code definition - http://en.wikipedia.org/wiki/Managed_code. ... Basically it is .NET programming languages. ... VSTO (Visual Studio Tools for Office) and the languages you use in VSTO ...
    (microsoft.public.project)
  • Re: VBA vs. Managed Code in Project 2007
    ... which are the same as those used in VBA. ... Basically it is .NET programming languages. ... Managed code is programming environment is usually done with Visual ... VSTO and the languages you use in VSTO ...
    (microsoft.public.project)
  • Re: P2P SDK and .Net
    ... I respect those proficient in pre-.NET languages, ... in a second with tlbimp.exe from .Net framework bin make converter dll for ... such APIs available. ...
    (microsoft.public.win32.programmer.networks)