CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2019
    Posts
    4

    [RESOLVED] Im new and a beginner - MFC library are required

    Hi,

    I am a new C++ beginner, but I have been coding for 10+ years in VB 6, VB.net, and Pascal (the past 2 years)

    I have installed Visual Studio 2019 community
    when I create a new C++ project, it compiles completely fine

    but if I open an older vs C++ app I get the following error
    MFC libraries are required for this project. Install them from the Visual Studio installer (Individual Components tab) for any toolsets and architectures being used.

    When I went to do this, there is a huge list of MSC options to choose from.

    Which library am I wanting to install, and how to why no which library, this older solution uses?

  2. #2
    Join Date
    Oct 2019
    Posts
    4

    Re: Im new and a beginner - MFC library are required

    *MFC (not MSC)

  3. #3
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Im new and a beginner - MFC library are required

    Have a look at this developercommunity:
    https://developercommunity.visualstu...t-mfc-app.html
    Victor Nijegorodov

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Im new and a beginner - MFC library are required

    there is a huge list of MFC options to choose from.
    For my VS2019 install, I have only one MFC option - C++ MFC for latest v142 build tools (x86 & x64)

    What list of MFC options do you get?

    older vs C++ app
    What version of VS was this created under?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  5. #5
    Join Date
    Oct 2019
    Posts
    4

    Re: Im new and a beginner - MFC library are required

    See image.
    The solution i am trying is VS 8.
    Its actually an example solution from a Report library.

    Name:  vscpp1.jpg
Views: 11961
Size:  46.8 KB
    Last edited by pixelink; October 24th, 2019 at 02:10 PM.

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Im new and a beginner - MFC library are required

    Install the MFC redist packages for the earlier MFC versions (these are downloaded separately and aren't a part of the 2019 VS Installer).

  7. #7
    Join Date
    Oct 2019
    Posts
    4

    Re: Im new and a beginner - MFC library are required

    Got it... it was.. C++ MFC for latest v142 build tools

  8. #8
    Join Date
    Dec 2019
    Posts
    1

    Re: Im new and a beginner - MFC library are required

    Quote Originally Posted by pixelink View Post
    Got it... it was.. C++ MFC for latest v142 build tools
    You note that installing "C++ MFC for latest v142 build tools" fixed the problem. This worked for me, too.

    To clarify, for future generations reading this post, you will not find this option under "Individual Components". Instead, what you need to do:

    • Launch Visual Studio Installer
    • Push the "Modify" button
    • On the right, under "Installation details", click on "Desktop development with C++"
    • Under "Optional" find and select "C++ MFC for latest v142 build tools (x86 & x64)"
    • "Close" and you should be all set after a minute


    I hope this helps the next person.

  9. #9
    Join Date
    Feb 2021
    Posts
    1

    Re: Im new and a beginner - MFC library are required

    Thanks for the detailed step-by-step solution - this helped me immensely!!!


    Quote Originally Posted by pointinpolygon View Post
    You note that installing "C++ MFC for latest v142 build tools" fixed the problem. This worked for me, too.

    To clarify, for future generations reading this post, you will not find this option under "Individual Components". Instead, what you need to do:

    • Launch Visual Studio Installer
    • Push the "Modify" button
    • On the right, under "Installation details", click on "Desktop development with C++"
    • Under "Optional" find and select "C++ MFC for latest v142 build tools (x86 & x64)"
    • "Close" and you should be all set after a minute


    I hope this helps the next person.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured