C++ .NET basic questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim H

    C++ .NET basic questions

    If there is a site someone can point me to that answers such basic
    questions, rather than taking up support's time posting answers, please let
    me know.

    I've developed C# .NET, unmanaged C++, and MFC applications. I have not
    written any C++.NET apps yet and have some very basic questions.

    Are managed C++ programs fully independent executables or are they still
    processed at run time like C# and vb.net apps are? Is the finished product
    MSIL?

    Do C++.NET apps have the same performance as a standard C++ app.

    Are managed C++ apps as susceptible to decompiling as C# and vb.net?

    Thanks in advance,
    jim


  • William DePalo [MVP VC++]

    #2
    Re: C++ .NET basic questions

    "Jim H" <jimh@nospam.no spam> wrote in message
    news:uK$ozW8MFH A.1172@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Are managed C++ programs fully independent executables or are they still
    > processed at run time like C# and vb.net apps are? Is the finished
    > product MSIL?[/color]

    Well, your question answers itself. :-) "Managed C++" programs compile to
    MSIL by definition.

    The thing about the C++ compiler in the VS.Net package is that it is capable
    of generating .obj files that get linked to PE formatted executables and
    DLLs as VC++ v6 _OR_ it can just as well compile a dialect of C++ to MSIL.
    Unlike the other compilers in VS.Net, MC++ is capable of interleaving
    managed and native sections in the same module. This capability is why the
    language is so well suited to interoperabilit y tasks.
    [color=blue]
    > Do C++.NET apps have the same performance as a standard C++ app.[/color]

    There is _no_ easy answer to such a question. The only answer that is valid
    in all cases is the very unsatisfying "it depends". :-)
    [color=blue]
    > Are managed C++ apps as susceptible to decompiling as C# and vb.net?[/color]

    Yes.

    Regards,
    Will


    Comment

    • Gary Chang[MSFT]

      #3
      RE: C++ .NET basic questions

      Hi Jim,

      Additionally to William's answer, if you discussed about the pure managed
      C++ application(not the mixed managed/unmanaged code app), I think you can
      take it as a .NET assembly directly, just as your C# program. Please take a
      look at our MSDN doc for more information about managed C++ programming:

      Managed Extensions for C++ Programming

      ml/vcManExMigratio nGuidePart1_Sta rt.asp


      Thank!

      Best regards,

      Gary Chang
      Microsoft Community Support
      --------------------
      Get Secure! ¡§C www.microsoft.com/security
      Register to Access MSDN Managed Newsgroups!

      &SD=msdn

      This posting is provided "AS IS" with no warranties, and confers no rights.

      Comment

      • glich via DotNetMonster.com

        #4
        Re: C++ .NET basic questions

        I usaly find that the best info sorce is the VC++ Index itself. Other than
        that MSDN (part of Microsoft I think) is very good at explaining librarys
        that come whith the program. You can find them with a simple search from
        the microsoft web site.

        --
        Message posted via http://www.dotnetmonster.com

        Comment

        Working...