Click here to Skip to main content
15,887,776 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
atverweij28-Feb-24 0:40
atverweij28-Feb-24 0:40 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Member 334960928-Feb-24 0:40
Member 334960928-Feb-24 0:40 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
mark.shultz@controlss.com28-Feb-24 3:42
mark.shultz@controlss.com28-Feb-24 3:42 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Member 334960928-Feb-24 3:54
Member 334960928-Feb-24 3:54 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Colin Humphries28-Feb-24 0:50
Colin Humphries28-Feb-24 0:50 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
CodeZombie6228-Feb-24 1:03
CodeZombie6228-Feb-24 1:03 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
rtischer827728-Feb-24 2:02
rtischer827728-Feb-24 2:02 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Peter Moore - Chicago28-Feb-24 3:13
Peter Moore - Chicago28-Feb-24 3:13 
I find Windows Forms' popularity in 2024 inexplicable, I'll be honest, but I will defend MFC and WPF.

If you want to use C++ and want to fully leverage Windows and aren't worried about cross-platform, there's still no better option than MFC. The thing to remember about MFC is it literally is a set of FOUNDATION classes. You can still utilize every modern Win32 API you want to. MFC just takes care of the most obnoxious parts of the scaffolding and UI interactions that you really don't want to be dealing with, and it's stuff in Windows that hasn't changed in decades. So MFC really by definition will continue to be relevant and usable indefinitely as long as Windows exists, most likely, and really needs no significant updates. Your alternative is to use pure Win32 with no helper framework. If you really want to do that, you might as well just write in assembly too. Big Grin | :-D

WPF is in a somewhat similar boat except it's C# and XAML. It is infinitely flexible and extensible. I mean, there's literally no application UI you can conceive that you can't do in WPF given that you can completely retemplate any control and even use Direct3D if you want to. You might be doing a lot of the work yourself, but it's doable, so again, it sort of by definition has an indefinite shelf life.

As for Forms, it's more or less the C# equivalent of MFC, but WPF offers far more flexibility in customizing UI, so unless you hate XAML for some reason (though you actually don't HAVE to use XAML if you really don't want to) I don't see why you'd pick Forms over WPF today. Nonetheless it is on par with MFC and WPF in terms of reliability and scalability so I also don't begrudge anyone who uses it.

Other than those three (MFC,WPF,and Forms), none of Microsoft's application frameworks are suitable for enterprise or commercial productivity applications. UWP is more or less on par (IMO) with Android and iOS for dinky consumer "apps" but out of the question for anything that needs to scale. WinUI3 came with a lot of hype but years later still suffers from stability problems, and not being open source I'm not going to let myself be 100% reliant on Microsoft to fix their bugs or find workarounds (wait, I guess it finally is open source as of late last year, so maybe that will be an option soon). MAUI (nee Xamarin Forms) is a sad parody of its former self. Blazor Hybrid, I don't even know what the @!%*% that's supposed to be.

And Visual Basic? Well remember VB.NET is just a programming language and is actually equivalent to C# line-by-line. Based on Stackoverflow questions people still use VB.NET both with WinForms and WPF. So it's not like VB is an alternative to WPF or Forms; it's an alternative to C# and still alive. It ain't my cup of tea but some people I imagine just find the syntax more approachable.


modified 28-Feb-24 14:41pm.

GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Member 11032328-Feb-24 3:25
Member 11032328-Feb-24 3:25 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
MSBassSinger28-Feb-24 3:39
professionalMSBassSinger28-Feb-24 3:39 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
PSU Steve28-Feb-24 3:45
professionalPSU Steve28-Feb-24 3:45 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
bigtlb28-Feb-24 6:13
bigtlb28-Feb-24 6:13 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
HobbyProggy28-Feb-24 3:53
professionalHobbyProggy28-Feb-24 3:53 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Steve Naidamast28-Feb-24 4:24
professionalSteve Naidamast28-Feb-24 4:24 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
cegarman28-Feb-24 5:09
cegarman28-Feb-24 5:09 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Rick York28-Feb-24 4:53
mveRick York28-Feb-24 4:53 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
nickpreston2428-Feb-24 5:09
nickpreston2428-Feb-24 5:09 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
ShawnVN28-Feb-24 5:51
ShawnVN28-Feb-24 5:51 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
bigtlb28-Feb-24 6:02
bigtlb28-Feb-24 6:02 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Stacy Dudovitz28-Feb-24 7:28
professionalStacy Dudovitz28-Feb-24 7:28 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Joe Woodbury28-Feb-24 16:31
professionalJoe Woodbury28-Feb-24 16:31 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
dandy7229-Feb-24 5:50
dandy7229-Feb-24 5:50 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Gary R. Wheeler29-Feb-24 10:15
Gary R. Wheeler29-Feb-24 10:15 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Stacy Dudovitz29-Feb-24 10:38
professionalStacy Dudovitz29-Feb-24 10:38 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Br.Bill4-Mar-24 9:55
Br.Bill4-Mar-24 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.