View Poll Results: Do you use MFC?

Voters
27. You may not vote on this poll
  • A lot

    5 18.52%
  • Somewhat

    3 11.11%
  • Less than somewhat

    4 14.81%
  • Not at all

    14 51.85%
  • What's MFC?

    1 3.70%

Thread: How many of you guys actually do win32 w/MFC

  1. #1
    Shadow12345
    Guest

    How many of you guys actually do win32 w/MFC

    I want to know how many people actually use MFC that post on these boards. I just want to get an idea how popular it is, but also if there are a lot of people to help me with it (the real reason)

    I would think that most people that know the winapi also have at least a fair understanding of Visual C++ with MFC.

  2. #2
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    MFC is bad; the api is better.
    MFC: Keeping programmers stupid

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I use it for some stuff...and a lot of people do (go to codeguru or codeproject and you'll see)......many people dont, and that's their decision....a lot of it is down to what you want and what you want to do...

    But beware negative opinions from people who have no knowlege on MFC whatsoever.......If they can use MFC and still dont like it - ok, but if they have no knowlege on it and dimiss it out of hand you can safely ignore them

  4. #4
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    hey! I know you can hear me! Oh fine then...just keeping ignoring me... !!

    *storms out of room*

  5. #5
    Shadow12345
    Guest
    [quote by Fordman]
    a lot of it is down to what you want and what you want to do...
    [/quote

    Umm well...can't you do basically everything with MFC? I want to be able to just make windows applications! These will include simple databases for the most part, using dlls and internet stuff.

  6. #6
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    I would have used it for ActiveX if ATL had not come along. But I never found it to be easier than straight API. The whole thing is very much a thin wrapper and it seems you're doing just as much work. Plus I have a real problem with macro heavy code. When you statically link (the only way I would even consider) you bloat the app when its not necessary to. I don't know. I can't say that someone is stupid for using it but I don't.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  7. #7
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    Umm well...can't you do basically everything with MFC? I want to be able to just make windows applications! These will include simple databases for the most part, using dlls and internet stuff.
    Thats exactly the point: you cant do everything -- they're trying to control what you can do by introducing a seemingly easier way to get the same thing done, but by doing so you lose the ability to customise you lose POWER!

    *gets ignored ... again*

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by face_master
    Thats exactly the point: you cant do everything -- they're trying to control what you can do by introducing a seemingly easier way to get the same thing done, but by doing so you lose the ability to customise you lose POWER!

    *gets ignored ... again*
    That is too dumb to deserve a detailed response....

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by Shadow12345
    [quote by Fordman]
    a lot of it is down to what you want and what you want to do...
    [/quote

    Umm well...can't you do basically everything with MFC? I want to be able to just make windows applications! These will include simple databases for the most part, using dlls and internet stuff.
    Yeah..its good for creating windows quickly...has a lot of COM abilities like for automation and database stuff

    Give it a try and make up your own mind

  10. #10
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Ive used it in the past but my preference is for straight API. Some of the MFC was nice but I think that some of it has a lot of bloat in it and thus is undesierable. But I do use my own wrappers for the part of the API im using since im a big fan of OOP and hate to read spaghetti code.

  11. #11
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    I use it for almost all my win projects. I like it alot but there is to much macros in it..Although if I would start over I would rather spend my time with managed C++ and the .NET framework then with mfc.

  12. #12
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >> That is too dumb to deserve a detailed response....

    As is most of the stuff that I post

  13. #13
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    Another vote for MFC here. I haven't done much windows programming and none at all with the api on its own. I started off with MFC so thats what I find easiest, the object oreinted nature (however thin it maybe) really helps when learning to control a window with toolbars, status bars, dialogs, menus, etc, etc.
    Couldn't think of anything interesting, cool or funny - sorry.

  14. #14
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    I prefer API although I have used mfc in the past to see what all the fuss was about and because I had read the 'industry standard' label applied to its use (MCSD courses seem to be nothing else).

    As has been already stated, MFC is a thin wrapper around the API and seems to involve as much hassle to use as just using the API neat. I also recall having a hassle with CFont objects (for example) not releasing gdi resources back to the system...(this may have been cured, though).

    It seems to me that learning API will do more good than just relying on mfc - there are some things that may be achieved using only API eg there is no DIB class in MFC (msvc6), the CBitmap class is device dependant.

    >>But I do use my own wrappers for the part of the API im using since im a big fan of OOP and hate to read spaghetti code.<<

    Me too - still have spaghetti code, though. I'd also add that it's arguably a useful challenge in OOP design to coerce the API into a sensible C++ wrapper(s) of your own. On a personal level I never did learn to let go of my reliance on the windowsx.h message macros.

    I'm also an amateur - this is a hobby so there's no pressure on me to choose one over the other. Lucky me.

  15. #15
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    i use MFC only when im to damn lazy to learn the WinAPI i need to code something, but then i get so ........ed at trying to get the MFC to work i end up forgrting the original purpose of the program, and quiting after my small triumph over MFC.

    in short, only use MFC for the simplest things, or maybe im just stupid.

    either way, Trog no like.

    BTW: to those who seem to be refering to procedural programming in general as spagetti code, i strongly disagree OOP has a tendancy to be infinitly more complex, badly designed, and "spagettish" if it is not PRE-DESIGNED and implemented properly. (STESS on PRE-DESIGN!!! i get ........ed at poorly designed OOP's especialy since i already hate OOP, and that just makes it a milion tmes worse)
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  2. Win32 in C++? (Is that what this tut is?)
    By Zeusbwr in forum Windows Programming
    Replies: 7
    Last Post: 04-07-2005, 08:52 PM
  3. Glut or Win32?
    By Zeusbwr in forum C++ Programming
    Replies: 14
    Last Post: 04-06-2005, 07:44 PM
  4. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  5. Classes and Win32 API, and another Question
    By philvaira in forum Windows Programming
    Replies: 10
    Last Post: 04-10-2004, 07:21 PM