TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > VC.NET

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

VC.NET

 
 
Thread Tools Display Modes
Unread 07-12-2007, 03:16 PM   #1
Kueishiong Tu
Guest
 
Posts: n/a
How to convert a VC++ MFC project into a VC++ .NET project?

Is there a way to convert a VC++ MFC project into a VC++ .NET project?
If yes, how do I do it?
 
Unread 07-12-2007, 03:16 PM   #2
PvdG42
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?


"Kueishiong Tu" <KueishiongTu@discussions.microsoft.com> wrote in message
news:5DA4820A-A50C-4727-868D-4CE792C14777@microsoft.com...
> 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.

 
Unread 07-12-2007, 03:17 PM   #3
Jochen Kalmbach [MVP]
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?

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/
 
Unread 08-12-2007, 01:34 AM   #4
Kueishiong Tu
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?

Dear Jochen:

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


"Jochen Kalmbach [MVP]" wrote:

> 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/
>

 
Unread 08-12-2007, 01:35 AM   #5
Kueishiong Tu
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?

Dear PvdG42:

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

"PvdG42" wrote:

>
> "Kueishiong Tu" <KueishiongTu@discussions.microsoft.com> wrote in message
> news:5DA4820A-A50C-4727-868D-4CE792C14777@microsoft.com...
> > 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.
>
>

 
Unread 08-12-2007, 11:59 AM   #6
Jochen Kalmbach [MVP]
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?

Hi Kueishiong!

> What version of VC++ .NET you have?

VC5-VC9 (VS95-VS2009)

> I didn't see that choice in my VC++ .NET 2003.


Project|Properties|Configuration Properties|General|Managed Extensions: Yes

Greetings
Jochen

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Unread 09-12-2007, 04:46 PM   #7
PvdG42
Guest
 
Posts: n/a
Re: How to convert a VC++ MFC project into a VC++ .NET project?

"Kueishiong Tu" <KueishiongTu@discussions.microsoft.com> wrote in message
news:AF233774-ACA0-4FAA-811B-B995E45C681E@microsoft.com...
> 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.

 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 10:14 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional