.NET And GUI Programming :: C++

Status
Not open for further replies.
Hello.

I posted a topic about GUI Programming a few days ago. I was trying to decide if I should go ahead and take a Visual Basic GUI Programming college course. I am most interested in C++ as most people have gotten from my comments on C++.

With the release of .NET, is Microsoft still using MFC for GUI? I would like to know what is the best approach to learning GUI Programming using C++ and still be able to implement GUI easily using .NET. In other words, I want to know what book(s) I should buy to learn GUI using C++ that would apply to .NET, if not emphasizes .NET.

Thanks,
Kuphryn
 

Tychom

Ars Tribunus Militum
2,391
Subscriptor
There are now 3 Microsoft C++ based GUI offerings - MFC, WTL and .NET WinForms. MFC is continually supported for the foreseeable future whilst WTL barely gets sufficient documentation, If youre programming for .NET then you will use WinForms only.

However, a lot of GUI programming concepts are very similar, sending messages to windows, parent-child window hierachies. All 3 of the above fall into these catagories so it is always possible to use knowledge from one to the other.

WinForms is totally simple (at least if youve come from MFC on one hand or AWT on the other) and realy doesnt require a book IMO - you can pick everything up from Quickstart tutorials that come with .NET SDKs (and are available on msdn).
 
Thanks.

What is the difference between MFC and Win32 API?

Many members recommended Programming Windows, The Definitive Guide to the Win32 API -- by Charles Petzold and Programming Windows With MFC -- by Jeff Prosise. I believe the Petzold book emphasizes C, and not C++. That is the reason that is keeping me from considering buying that to strart GUI programming. As for Prosise's book, again, I do not know about the future of MFC with respect to .NET. I want to make sure that .NET and possibly future releases of popular C++ compilers such as Visual C++ and Borland C++ Builder will support MFC.

Ultimately, I want to stick with C++ as a primary programming language. I do not know until when, but I believe it will be a long,long time until someone design a language with the same low-level (C) and high-level (OOP) features like C++. With that said, what GUI programming technique using C++ will give me the most options now and in the future?

Kuphryn
 

yakyakly

Ars Tribunus Militum
2,320
I want to make sure that .NET (snip) will support MFC.

As was stated before, if you're writing .NET software, you're going to be using WinForms (or WebForms). MFC has nothing to do with the .NET Framework.

If you're talking about Visual Studio, then I would imagine that MFC will be supported for quite a while.

You've got to make sure you're using the right tool for a given task. There can be huge productivity benefits from going higher up the chain.

Kyle
 
Okay. Thanks.

I believe there has been a misunderstanding about my ".NET." When I said ".NET," I meant Visual C++ .NET, the latest upcoming version of Visual C++ (7.0).

yakyakly: I believe you thought I was talking about .NET framework. What is this .NET framework all about? You mentio ed .NET applications. What are .NET applications? I just know C++.

I am basically blind about all other platforms. Hopefully, I can design and implement applications using C++ regardless of platform.

Kuphryn
 
Status
Not open for further replies.