This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

MFC (Microsoft Foundation Classes)

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
have some of you ever done MFC ? I've programmed a considerable amount of MFC thus far, but it took me a real long time to get the hang of it. I found it very difficult to learn windows programming with it, despite having a great book on it (Windows programming with MFC)
Why is MFC what it is ? I mean, you can look at it and say one of two things
1) it has SERIOUS design flaws.. (several hundreds) It is so NOT how to make a framework!
2) it is just meant to be a very thin wrapper around the win32 API..
Eihter way, I think why use a thin wrapper around the win32 API and work with a disgustingly miserable framework todo your everyday OO windows programming..
what's your thoughts on this ??

Dave
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your question will be answered after every one is done with the other hot discussions
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's face it: The original Win32 API was in C, not C++ and therefore not OO.
Although I have never programmed strict Win32 apps, I did some reading of Windows programming both the C API and the MFC.
I believe your #2 is correct. Just like C++ was kludged to make an OO C, MFC is trying to make classes (OO) out of a structured programming environment.
I thank the gods that I could SKIP that, and instead learn Java programming with its AWT and SWING instead
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but
One CAN write decent OO programs with C++ though... It just doesn't force the OO methodologies on the programmer because you can still program in C (procedural) and alot of general C functions can be handy when in C++
So I'm more thinking #1 now You CAN create a decent OO framework in C++ (look at Borland, pretty good) but microsoft developers haven't learned sh*t about OO programming..
Name ONE microsoft product you think is a technological piece of art!!! You'll find none..

Dave
 
Tony Alicea
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you because when I started working in Java, I met this guy at work that I consider of genius IQ. And for me to state that with a degree in Physics and at my age (51) and with over 20 years experience as a professional programmer, requires a lot.
At 36 years of age early last year he was an expert Smalltalk, C/C++ and Java programmer. His first JDK experience dates back to the second half of 1995.
Anyway, he said that he as seen a lot of programmers state that they know C++ but instead what they do is write a procedural program and put "class public" at the top and close with the '}' at the end and PRESTO! They are C++ programmers!
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to write a Hello World program with a populated combo box using MFC was enough to make me decide that Java was the way to go. Where I work they decided to create an entire C++ library to wrap up Windows calls rather than deal with the horribleness of MFC.
MFC and the Windows Registry ought to be in some sort of Software Design Hall of Shame
Marcus

------------------

http://www.jchq.net Mock Exams, FAQ,
Tutorial, Links, Book reviews
Java 2 Exam Prep, 2nd Edition by Bill Brogden and Marcus Green
=================================================
JCHQ, Almost as good as JavaRanch
=================================================
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am all for the destruction of M$, but you have to look at each implementation at a level of need.
MFC is flawed because of it's complexity and bad design
C++ is flawed because of bad design and lack of user knowledge
JAVA is flawed because of the JVM
C is flawed because it is not OO
So you have to take your project outline and weigh the pro's and cons of all languages and decide which would be the best to implemement your project with.
There is no perfect language. It's all about getting what you can out of the imperfections.


------------------
Happy Coding,
Gregg Bolinger
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gregg Bolinger:
JAVA is flawed because of the JVM

Huh?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mainly because it is slow. I was just getting my point accross that every language has it's flaws.


------------------
Happy Coding,
Gregg Bolinger
 
See where your hand is? Not there. It's next to this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!