Click here to Skip to main content
15,887,417 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
Gerry Schmitz28-Feb-24 7:37
mveGerry Schmitz28-Feb-24 7:37 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
honey the codewitch28-Feb-24 7:46
mvahoney the codewitch28-Feb-24 7:46 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Ravi Bhavnani27-Feb-24 9:23
professionalRavi Bhavnani27-Feb-24 9:23 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Mike Hankey27-Feb-24 9:35
mveMike Hankey27-Feb-24 9:35 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Sven Bardos27-Feb-24 9:37
Sven Bardos27-Feb-24 9:37 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Sven Bardos27-Feb-24 9:50
Sven Bardos27-Feb-24 9:50 
GeneralRe: MFC? WinForms? I gotta ask... why? PinPopular
PIEBALDconsult27-Feb-24 13:23
mvePIEBALDconsult27-Feb-24 13:23 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Stacy Dudovitz27-Feb-24 15:54
professionalStacy Dudovitz27-Feb-24 15:54 
Lots of good answers, and from my 4+ decades of experience as a professional developer (now retired), I suspect its a combination. So, allow me to weigh in with some of my own thoughts:

My experience includes Win16/Win32 APIs (C), MFC (C,C++), WinForms (C#) and WPF (C#, Framework and Core). While I agree with the sentiment that one must keep moving forward in a professional setting (i.e. clients as the end users), I also have endured the pain of being unable to upgrade because of client budget, incompatibilities, and developer culture.

In addition, much of the move from C/C++ to .NET and across GUI platforms was made both easier and more difficult with COM, remoting, COM InterOp (RCWs/CCWs), as well as XML and JSON. When I was heavily invested in COM, I used WTL (Windows Template Library) for my GUIs when working in C++. WTL cannot replace MFC (it was never meant to), but for most applications it can hold it's own.

Here's the thing... I still love C/C++, it's often the only choice for me when I worked on embedded projects (think Eclipse IDE, etc.). That being said, C# is soooo much easier to work with, is in many ways more powerful and is as performant. That leaves me wondering why C/C++ for a Windows GUI project.

When it comes to which GUI platform in the C# world, WinForms "strength" is also it's weakness. If you have ever tried to implement components, or have to copy/reuse/resize a form and its subsequent components, you know how incredibly difficult that can be. Add in language support and it becomes a night mare.

On the other hand, WPF is indeed a steep learning curve, but what you trade for in return is extensibility and full theming and language support in XAML through control and data templates, styles, etc. Once you use and master WPF, there's no going back! Smile | :)

One could punt and use WPF in a minimalist way by using a Grid control and just plop controls in fixed positions. One could avoid learning a large part of WPF, but that's like buying a Ferrari only to transport people around by dragging it behind a tow truck.

So I do get it's context dependent, such that there are still a great many developers that choose alternate paths. Sometimes there's no compelling reason when, for example, supporting a legacy application that no longer is viable to port or upgrade. I also do defend the right of hobbyists to pick their poison. I still love, now again, to fire up my Trash80, if for no other reason, than to see if ChatGPT ports to Z-80 really work! Poke tongue | ;-P Laugh | :laugh:

One group notably missing from those that responded are VB/VB.NET developers. It's very easy to take cheap shots at both, but I would think at least VB.NET would be a popular choice given its similarities to WinForms, and the fact that many of us cut our teeth on some form of interpreted BASIC on older vintage hardware. NewDOS, DOSPLus and LDOS (TRS-80 DOSs) all offered significant powerful features to BASIC, and I wrote and supported commercial application back in the 80s. While C++ and C# captured my heart years ago, I will always have a place in my heart for BASIC.

...and maybe assembly language, since the Z-80 and the 6502 were my first forays into learning to write software on the TRS-80 and Apple II/II Plus. Smile | :) Smile | :)

Well, that's my two shekels.
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
MikeCO1028-Feb-24 1:48
MikeCO1028-Feb-24 1:48 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
BryanFazekas28-Feb-24 1:51
BryanFazekas28-Feb-24 1:51 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Gerry Schmitz28-Feb-24 7:46
mveGerry Schmitz28-Feb-24 7:46 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Peter Adam27-Feb-24 20:22
professionalPeter Adam27-Feb-24 20:22 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Wolfgang Wolf27-Feb-24 20:39
Wolfgang Wolf27-Feb-24 20:39 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
den2k8827-Feb-24 22:08
professionalden2k8827-Feb-24 22:08 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
Stacy Dudovitz27-Feb-24 22:13
professionalStacy Dudovitz27-Feb-24 22:13 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
JohaViss6127-Feb-24 22:57
professionalJohaViss6127-Feb-24 22:57 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
glennPattonWork327-Feb-24 23:08
professionalglennPattonWork327-Feb-24 23:08 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
BryanFazekas28-Feb-24 2:09
BryanFazekas28-Feb-24 2:09 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
rallets28-Feb-24 0:27
rallets28-Feb-24 0:27 
GeneralRe: MFC? WinForms? I gotta ask... why? Pin
snoopy00128-Feb-24 0:32
snoopy00128-Feb-24 0:32 
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 

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.