managed or native

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    managed or native

    Hello!!

    I have an MFC application from VC6.
    If I compile this on VC8/MFC I get a managed app.

    I just wonder what is the difference VC8 will generate a managed app but
    VC6/MFC generates a native app. I'm I right here?

    Does it mean that the managed code is executable on every intel plattform?

    //Tony


  • David Wilkinson

    #2
    Re: managed or native

    Tony Johansson wrote:
    [color=blue]
    > Hello!!
    >
    > I have an MFC application from VC6.
    > If I compile this on VC8/MFC I get a managed app.
    >
    > I just wonder what is the difference VC8 will generate a managed app but
    > VC6/MFC generates a native app. I'm I right here?
    >
    > Does it mean that the managed code is executable on every intel plattform?
    >
    > //Tony
    >
    >[/color]

    Tony:

    Didn't you ask this question yesterday? I don't have VC8, but I'm sure
    that if you open a VC6 MFC project in VC8 then you get an unmanaged C++
    application that doesn't use .NET.

    You don't have to use .NET if you don't want to. And no, managed code
    will not run on any platform.

    But a VC8 MFC application will not run on every platform either (if it
    links to MFC dynamically) because the VC8 MFC DLL's are not loaded on
    every machine (unlike the VC6 DLL's which usually are). Personally, I
    always use static linking.

    David Wilkinson

    Comment

    • Bo Persson

      #3
      Re: managed or native


      "Tony Johansson" <johansson.ande rsson@telia.com > skrev i meddelandet
      news:sW07f.1489 49$dP1.506784@n ewsc.telia.net. ..[color=blue]
      > Hello!!
      >
      > I have an MFC application from VC6.
      > If I compile this on VC8/MFC I get a managed app.[/color]

      No, you will get a native app.
      [color=blue]
      >
      > I just wonder what is the difference VC8 will generate a managed app
      > but
      > VC6/MFC generates a native app. I'm I right here?[/color]

      You won't get a managed application, unelss you specifically choose to
      create one.
      [color=blue]
      >
      > Does it mean that the managed code is executable on every intel
      > plattform?[/color]

      A VC8 managed application will only run on machines with the .NET
      Framework 2.0 installed. Right now that is limited to Beta testers,
      like the members of this group.
      [color=blue]
      >
      > //Tony
      >[/color]


      Bo Persson


      Comment

      • Tom Serface

        #4
        Re: managed or native

        No, you jst get a new version of the same code. There are lots of changes
        from v6.0 and, as Carl suggested in another post you will find that enough
        things have changed that you will have lots of fixes to make. That said, I
        think it is worth the couple of days effort to bring the code up to the
        newer, more compliant compiler's specifications before doing any other
        changes.

        Managed code is executable wherever there is a CLR to execute it (so far I
        think that is only Windows)

        The new VC8 compiler is available as of November 7th (week after next) so
        not too far off.

        Tom

        "Tony Johansson" <johansson.ande rsson@telia.com > wrote in message
        news:sW07f.1489 49$dP1.506784@n ewsc.telia.net. ..[color=blue]
        > Hello!!
        >
        > I have an MFC application from VC6.
        > If I compile this on VC8/MFC I get a managed app.
        >
        > I just wonder what is the difference VC8 will generate a managed app but
        > VC6/MFC generates a native app. I'm I right here?
        >
        > Does it mean that the managed code is executable on every intel plattform?
        >
        > //Tony
        >[/color]


        Comment

        Working...