Visual Studio 2022 C++ MFC is not installing

underflow 0 Reputation points
2024-08-24T19:42:53.69+00:00

I am having trouble in installing C++ MFC component on Visual Studio 2022 professional as well as community editions. It installs C++ MFC component. But if I check again, C++ MFC is unchecked in the install list checkbox. I did this several times. But still the same.

I need this to link Media Foundation lib files.

Developer technologies C++
Developer technologies Visual Studio Other
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-08-24T21:58:11.55+00:00

    To clarify, there are several different versions of MFC available to install. You need to install the right one.

    1. Run the VS installer
    2. Go to the Individual Components tab
    3. Type in MFC in the search bar
    4. Select `C++ MFC for latest v143 build tools (x86 & x64)
    5. Install the components.

    Then confirm the install.

    1. Start Visual Studio
    2. Create a new project
    3. In the search filter type MFC
    4. You should see several MFC templates available

  2. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2024-08-26T01:52:37.0766667+00:00

    Hi, @underflow

    Media foundation is Win32 library, not MFC.
    There is no mfapi.lib and mfidl.lib.

    mfapi.h -> Mfplat.lib

    mfidl.h -> Mf.lib

    mfobjects.h -> Mfuuid.lib

    mfreadwrite.h -> Mfreadwrite.lib

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.