I suggest you should check whether you have installed the MFC SDK. Open the VS Installer window, you could click on "Individual Components", then scroll quite a way down to get to the "SDKs, libraries and frameworks" section. In there, you'll find a list of components for ATL and MFC support. You could choose the version you need to install. For example: "Visual C++ MFC for x86 and x64"
If the response is helpful, please click "Accept Answer" and upvote it.
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.