managed or native

T

Tony Johansson

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
 
D

David Wilkinson

Tony said:
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

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
 
B

Bo Persson

Tony Johansson said:
Hello!!

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

No, you will get a native 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?

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

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.


Bo Persson
 
T

Tom Serface

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top