How to convert a VC++ MFC project into a VC++ .NET project?

K

Kueishiong Tu

Is there a way to convert a VC++ MFC project into a VC++ .NET project?
If yes, how do I do it?
 
P

PvdG42

Kueishiong Tu said:
Is there a way to convert a VC++ MFC project into a VC++ .NET project?
If yes, how do I do it?

Manually, I believe. I don't believe there is, or will be, a tool for
automated conversion. Everything is different: the class libraries, the
language syntax, the target platform, etc.
 
J

Jochen Kalmbach [MVP]

Hi Kueishiong!
Is there a way to convert a VC++ MFC project into a VC++ .NET project?
If yes, how do I do it?

What ist VC++ .NET ???

Just enable the "/clr" switch (Projept Properties|General|Common
Language Runtime Support), then you have an .NET project!

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
K

Kueishiong Tu

Dear Jochen:

What version of VC++ .NET you have?
I didn't see that choice in my VC++ .NET 2003.
 
K

Kueishiong Tu

Dear PvdG42:

How to do it manually? Can I write a wrapper or do I have have to start from
the scratch?
 
P

PvdG42

Kueishiong Tu said:
Dear PvdG42:

How to do it manually? Can I write a wrapper or do I have have to start
from
the scratch?
I think we need you to define what you mean by "convert a VC++ MFC project
into a VC++ .NET project".
If all you want is CLR support enabled, the /clr switch will do it. If what
you had in mind is to actually convert the existing functionality from
extensions of MFC classes to a C++/CLR (managed extensions in VS .NET 2003)
application based on CLR Windows Forms and using the .NET class library,
setting the /clr switch won't do that.

When I responded to you, I was assuming you wanted a full functionality
conversion.
 

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