Thread: How do I use MFC in Visual C++ 2008?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    31

    Question How do I use MFC in Visual C++ 2008?

    I am having difficulty making a simple MFC based program on Microsoft's VC++. I don't like the wizard junk. I want to be completely in charge of the header files being used. I want to have direct, simple control over my programs.

    Is there a way that I can simpley include the MFC's into my program, without wizards, or DLLs?

  2. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    31
    It sounds like The files needed for MFC, are not included with Microsoft's Visual C++ express edition. Is that true?

    If so, is there a way of obtaining the MFC files for cheap?

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    1) Yes.
    2) No.
    MFC isn't free - it comes with the Professional edition. Though if you are a student, you can get it for free at Dreamspark.
    Also, you SHOULD use the Wizard for generating an MFC app since it generates the absolute minimum code to get your MFC app to work.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    31

    Smile

    Quote Originally Posted by Elysia View Post
    1) Yes.
    2) No.
    MFC isn't free - it comes with the Professional edition. Though if you are a student, you can get it for free at Dreamspark.
    Cool, I am not an official student anywhere, but I am studying at home. Is there any way that I could be verified as a student?

    Quote Originally Posted by Elysia View Post
    Also, you SHOULD use the Wizard for generating an MFC app since it generates the absolute minimum code to get your MFC app to work.
    Where can I see what elements are included from MFC, when using the wizard?

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by RaisinToe View Post
    Cool, I am not an official student anywhere, but I am studying at home. Is there any way that I could be verified as a student?
    I don't know. You should try.

    Where can I see what elements are included from MFC, when using the wizard?
    Not sure what you mean?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    31
    I just mean, what are the pieces from MFC that I can use right now?

    I mean, what are the classes that I can use from MFC right now?

    I ask, what are the pieces that I can use, because I suppose that some of the classes may not be complete. Are all of the classes complete that are included with the express version, ( using the wizard of course )?

    I am just asking, "what am I able to use from the MFCs with the express edition?"

  7. #7
    Registered User
    Join Date
    Jan 2009
    Posts
    31
    I guess I am getting the wrong idea. I just need to take a look at the code that is generated by the wizard.

  8. #8
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    Quote Originally Posted by RaisinToe View Post
    I am just asking, "what am I able to use from the MFCs with the express edition?"
    As it comes, none, none at all. You can get some MFC headers and libs for free, albeit for an older version (4.2), by downloading the WDK package from Microsoft Connect. That's all you get though, no examples or IDE intergration.

    That said, if you're not eligible to get VS pro for free, there is a 90-day trial from which you can gather the info you require.

  9. #9
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Nope. Seems fine to me.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Doing MFC without the wizards is extremely painful. There is a lot of redundant code that you will get tired of typing over and over and over again.

  11. #11
    Registered User
    Join Date
    Jan 2009
    Posts
    31

    Question

    Quote Originally Posted by Bubba View Post
    Doing MFC without the wizards is extremely painful. There is a lot of redundant code that you will get tired of typing over and over and over again.
    Is a lot of the extra code needed because of the way Visual Studio is set up? Or is it just the typical MFC code that you are talking about?

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It's MFC code.
    Remember also that MFC is quite old. It reinvents a lot of stuff that C++ now supports natively, but back in the day, C++ did not support. That is why, sometimes, it can be a lot of code.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

Tags for this Thread