Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2005, 07:19 AM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Do I need to learn MFC if Windows Forms is in ?

Wikipedia.org site suggests that Windows Forms attempt to replace Microsoft MFC; I also noticed that more books out on Windows Forms and less books on MFC.

But "Ivor Horton's Beginning Visual C++ 2005" includes both a chapter on MFC and Windows Forms. And Horton's recommended path to build Visual C++ programming career is:
 Beginning VC++ Programming ---> Beginning MFC Programming--->Beginning MFC COM programming--->Professional MFC with VC++.
(Mr. Horton has this path chart prescribed on the back of his two previous books: "Beginning VC++ 5" & "Beginning VC++ 6".)

My questions are:
1) If Windows Forms has a clear advantage over MFC, is it necessary or taking trouble learning MFC for a VC++ beginner?
2) If Windows Forms still is in primitive/transitional stage, is it possible that MFC going to be phased out anyway, say in 2, or 3 years?


 
Old December 9th, 2005, 08:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Quote:
quote:1) If Windows Forms has a clear advantage over MFC, is it necessary or taking trouble learning MFC for a VC++ beginner?

MFC is an easy to use wrapper for Windows APIs. You learn MFC to do Windows Programming, programming for native windows environment, which involves Win 32 DLLs, COM development, application development etc.

Windows Forms, however is an abstraction of the things that you need to do to make a Windows application with various forms. I call it an abstraction 'cause the whole thing is designed to be portable, and thus has better affinity with .NET concepts. If Microsoft succeeds in developing Frameworks for other platforms, your application might as well run on platforms other than Windows without or with minimal changes in your application.


Actually if you are going with .NET and gonna stay with it, you don’t need to learn either VC++ or MFC.

If, however, you are getting into core windows development you can hardly do anything substantial without learning VC++.

The two, as I mentioned earlier have different business areas.


Quote:
quote:2) If Windows Forms still is in primitive/transitional stage, is it possible that MFC going to be phased out anyway, say in 2, or 3 years?
Now the question is not if Windows Forms will replace MFC, ‘cause the two have different business areas, but whether all windows programming will shift on .NET or not.
While it may seem like a possibility, I have my reservations about it, ‘cause .NET as I mentioned is designed to be portable, and even when more and more windows functionalities are being added to framework with its each new version, I believe core windows development would still be happening in VC++ and MFC will always be an integral part of it. So MFC is here to stay for at least those many years.


I would like to get comments on it if anybody sees longhorn bringing any drastic change in this equation.

Regards
Ankur Verma





Similar Threads
Thread Thread Starter Forum Replies Last Post
MFC and Windows Forms elvisfeverr Visual C++ 2 July 12th, 2008 12:28 AM
Windows Forms sambathrajmca Windows Workflow 1 November 27th, 2007 06:25 AM
windows forms lakshmiR .NET Framework 1.x 1 August 31st, 2007 08:32 PM
Windows forms eyan C# 1 July 1st, 2004 04:10 PM
Where to learn C++ Windows Programming Cris987 C++ Programming 1 December 28th, 2003 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.