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.
Back then MIcrosoft knew they had to explain it or no one else would.
Now, everyone thinks, "I don't need to do no 'splainin cuz it already been done somewheres else on the Internet prolly. So no one really explains. Oh, that 2nd param no one explains what it is.
I liked MFC. OOP wrappers around API. Nice and clean.
But I was a newbie in 1995-8 and OOP was rising and I jumped on the New Thing Boat and this was my anchor.
But, alas, MFC went away for the most part...was ignored when C# came out and all that learning...down the drain. MFC was a weird sidebar but I still liked it.
I never liked MFC, it always struck me as over complicated, especially those ridiculous macros just to generate a simple jump table. Probably because of my machine code and assembler background, I much preferred the Win32 API.
I never liked MFC, it always struck me as over complicated, especially those ridiculous macros just to generate a simple jump table. Probably because of my machine code and assembler background, I much preferred the Win32 API
Yeah, I remember my mentor at the time felt the same way.
I think the thing I liked about it at the time was the distance I got from the Windows Message loop.
It was wrapped up nicely in MFC template project.
Of course in the original WinAPI you had to handle it all yourself.
MFC was kind of like the jump to C# way before C#. But it wasn't as nice as C#, of course.
Yeah, it's amazing that VSTudio still even supports MFC. It's too bad it didn't take off like C#. I liked it better because it was more esoteric. Seemed more like hidden knowledge you had to go into the cave and explore for. Then along came C# and brought everything out into the light and everyone was dragging and dropping and developing.
Coming from a non Computer Science background, the sheer size of this put me off at that time.
I felt the same way. I was learning C++ from a Dummies book and then trying to get through this stuff. I remember when in 1994 someone gave me Petzold's Windows Programming book and I was so shocked that there was someone (one lone author, it seemed) who actually explained windows programming.