473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Nov 17 '05 #1
3 986
Tony Johansson wrote:
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
Nov 17 '05 #2

"Tony Johansson" <jo*****************@telia.com> skrev i meddelandet
news:sW*********************@newsc.telia.net...
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.

//Tony

Bo Persson
Nov 17 '05 #3
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" <jo*****************@telia.com> wrote in message
news:sW*********************@newsc.telia.net...
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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mr Topom | last post by:
Hello, I have a C++ (unmanaged) class named K in a DLL. I create a managed C++ class named K in an other DLL that wrapped the unmanaged one. To refer the unmanaged one I use ::K and the...
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
4
by: William F. Kinsley | last post by:
My understanding is that when I re-compile a existing MFC application with the /clr switch, that the code generated is managed(with some exceptions) but that the data isn't, i.e. not garbage...
2
by: Martin Zenkel | last post by:
Dear VS Team, using the Beta 2 of VS 2005 I've encontered the following problem. Let's assume threre are three Dll's, one unmanaged and two managed. In the unmanaged we put a simple unmanged...
3
by: Adam | last post by:
I can't seem to find one spot on the net that specifies exactly what I need to do. Situation: Native dll needs to hold a static reference to a managed class in .net 2.0 (whidbey) which needs to...
9
by: Herby | last post by:
Is possible to have a managed method within a Native(un-managed) class within a \clr project? E.g. class myClass { public: #pragma managed void myMethod(void);
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
12
by: DaTurk | last post by:
Hi, I have a rather interesting problem. I have a unmanged c++ class which needs to communicate information to managed c++ via callbacks, with a layer of c# on top of the managed c++ ultimatley...
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
2
by: Bob Altman | last post by:
Hi all, We have a native class modeled after the System::Exception class, and all exceptions that we throw derive from this class. For now this class is quite simple: just Description and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.