-
October 24th, 2019, 07:13 AM
#1
[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?
-
October 24th, 2019, 07:14 AM
#2
Re: Im new and a beginner - MFC library are required
-
October 24th, 2019, 09:01 AM
#3
Re: Im new and a beginner - MFC library are required
Victor Nijegorodov
-
October 24th, 2019, 09:59 AM
#4
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?
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)
-
October 24th, 2019, 10:24 AM
#5
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.
Last edited by pixelink; October 24th, 2019 at 02:10 PM.
-
October 24th, 2019, 05:49 PM
#6
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).
-
October 25th, 2019, 08:21 AM
#7
Re: Im new and a beginner - MFC library are required
Got it... it was.. C++ MFC for latest v142 build tools
-
December 1st, 2019, 10:53 AM
#8
Re: Im new and a beginner - MFC library are required
Originally Posted by pixelink
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.
-
February 4th, 2021, 10:21 AM
#9
Re: Im new and a beginner - MFC library are required
Thanks for the detailed step-by-step solution - this helped me immensely!!!
Originally Posted by pointinpolygon
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|