473,236 Members | 1,328 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,236 software developers and data experts.

migrating VC6 to VC8

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
Nov 17 '05 #1
1 1491
Tony Johansson wrote:
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?
If you wan to use .NET 2.0, yes. You can do it with VC 7.1 (2003) for .NET
1.1, but you won't have the new managed C++ syntax.
The old MFC will work in the new VS2005(VC8)
My MFC project consist of several files that constitute the MFC
application.
You may have to make a change here and there, by overall, yes.
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?
When you compile your existsing code with /clr, you can use .NET framework
classes from anywhere, including adding new code to old classes.
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?
Yes.
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)?
Maybe. The platform is the CLI. Microsoft .NET is one implementation of
the CLI, but there are others. The Mono project is an open-source CLI for
Unix, but it doesn't support everything that .NET supports yet. In practice
your WinForms+MFC app is still tied to Windows, just as it was as an MFC
app.
Is it a condition to be able to mix several different .NET langauges
for an application that it's a managed app?
No.
A native app can't mix different .NET langauges?
Yes it can, but not as easily.
If I instead used native what do I miss then?
Windows Forms and the .NET framework classes.
Is it correct an updated app VC6/MFC to VC8 that will use the .NET
framework must be a managed app.?
That's two ways of saying the same thing. .NET Framework app == 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.


You never have to use C++/CLI. When interacting with the .NET framework,
you can use C++/CLI or the older Managed Extensions for C++. Use of ISO C++
and C++/CLI are not mutually exclusive - C++/CLI is an extension of ISO C++,
so you can write 99% ISO C++ and mix in a little bit of C++/CLI here and
there where you need to interact with .NET framework class.

-cd
Nov 17 '05 #2

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

Similar topics

0
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra...
0
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this:...
4
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
4
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
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);
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
2
by: Jean-Claude Adams | last post by:
Hi Folks. I need some tutorial or some expertice about the subject. Because, i'm have a customer, need's change the actual appl, but the only issue is a dbf database, and the GUI is the older...
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
12
by: jdokos | last post by:
Does anyone know of any good sources (white papers, etc.) regarding migrating from Teradata to DB2 UDB EEE? We are in the very beginning stages of investigating this as an option for some of the...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.