T
Tony Johansson
Hello!!
You may correct me if I say something that is not right.
If I want to use the .NET framework for an VC6/MFC application I must
compile the VC6/MFC to VC8 using the /CLI switch after removing all the
errors?
The old MFC will work in the new VS2005(VC8)
My MFC project consist of several files that constitute the MFC application.
Now assume that I want to change something in the old updated MFC what
conditions exist then.
Can I use.NET framework only in new classes or is possible to use it even in
old classes from the updated MFC application?
I wrote in an earlier mail the following:
If I intend to use C++ in VS2005 I can either use managed code which
is C++/CLI which give me the possibility to mix other language such
as C# or VB or use unmanaged code for example using MFC then I can
not mix other language.
I received the answer below
There are two separate, somewhat independent issues:
1. Which platform you're targeting: native or managed
2. Which language (syntax) you're using: C++/CLI, ISO C++ or ISO C89.
C++/CLI - managed only
ISO C++ - native or managed (or mixture)
ISO C - native only
Supported languages can be mixed on either platform, so for example, you
can use both ISO C++ and C++/CLI to write managed code (but only the C++/CLI
classes will be usable from other .NET languages). In fact, there's nothing
to stop you from having C++/CLI, ISO C++ compiled as managed, ISO C++
compiled as natice and ISO C89 compiled as native all in the same
executable.
Some more question on the answer.You wrote which platform you're targeting:
native or managed?
I assume a managed app mean that it is more or less plattform independent
similar to Java
and that you can mix different .NET langauges. Is that right conclusion?
Even if you have a managed app you can't use it as you can use Java because
Java runs on most plattforms for example Unix..
If I use managed app which plattform can the updated app be executed on? Can
I run it on Unix(Linux)?
Is it a condition to be able to mix several different .NET langauges for an
application that it's a managed app?
A native app can't mix different .NET langauges?
If I instead used native what do I miss then?
Is it correct an updated app VC6/MFC to VC8 that will use the .NET framework
must be a managed app.?
If I update a VC6/MFC to VC8 just to be able to use .NET framework What
condition exist in the new updated application. I mean when changing
existing code in one way or another and adding new code. Can I use the
standard C++(ISO C++) instead of C++/CLI?. So the question is when can I use
standard C++(ISO C++) and when do I have to use C++/CLI in the updated
VC6/MFC to VC8 to be abler to use .NET framework.
//Tony
You may correct me if I say something that is not right.
If I want to use the .NET framework for an VC6/MFC application I must
compile the VC6/MFC to VC8 using the /CLI switch after removing all the
errors?
The old MFC will work in the new VS2005(VC8)
My MFC project consist of several files that constitute the MFC application.
Now assume that I want to change something in the old updated MFC what
conditions exist then.
Can I use.NET framework only in new classes or is possible to use it even in
old classes from the updated MFC application?
I wrote in an earlier mail the following:
If I intend to use C++ in VS2005 I can either use managed code which
is C++/CLI which give me the possibility to mix other language such
as C# or VB or use unmanaged code for example using MFC then I can
not mix other language.
I received the answer below
There are two separate, somewhat independent issues:
1. Which platform you're targeting: native or managed
2. Which language (syntax) you're using: C++/CLI, ISO C++ or ISO C89.
C++/CLI - managed only
ISO C++ - native or managed (or mixture)
ISO C - native only
Supported languages can be mixed on either platform, so for example, you
can use both ISO C++ and C++/CLI to write managed code (but only the C++/CLI
classes will be usable from other .NET languages). In fact, there's nothing
to stop you from having C++/CLI, ISO C++ compiled as managed, ISO C++
compiled as natice and ISO C89 compiled as native all in the same
executable.
Some more question on the answer.You wrote which platform you're targeting:
native or managed?
I assume a managed app mean that it is more or less plattform independent
similar to Java
and that you can mix different .NET langauges. Is that right conclusion?
Even if you have a managed app you can't use it as you can use Java because
Java runs on most plattforms for example Unix..
If I use managed app which plattform can the updated app be executed on? Can
I run it on Unix(Linux)?
Is it a condition to be able to mix several different .NET langauges for an
application that it's a managed app?
A native app can't mix different .NET langauges?
If I instead used native what do I miss then?
Is it correct an updated app VC6/MFC to VC8 that will use the .NET framework
must be a managed app.?
If I update a VC6/MFC to VC8 just to be able to use .NET framework What
condition exist in the new updated application. I mean when changing
existing code in one way or another and adding new code. Can I use the
standard C++(ISO C++) instead of C++/CLI?. So the question is when can I use
standard C++(ISO C++) and when do I have to use C++/CLI in the updated
VC6/MFC to VC8 to be abler to use .NET framework.
//Tony