MFC libraries are required for this project

1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(497,5): error MSB8041: MFC libraries are required for this project. Install them from the Visual Studio installer (Individual Components tab) for any toolsets and architectures being used.

适用于V143最新生成工具 的C++ MFC(x86和x64)
--------------------------------------------------------------------------------------------------------

1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\atlmfc\include\afxcmn.inl(400,62): error C2065: 'TVIF_STATEEX': undeclared identifier
1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\atlmfc\include\afxcmn.inl(402,62): error C2065: 'TVIF_EXPANDEDIMAGE': undeclared identifier
1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\atlmfc\include\afxcmn.inl(402,100): error C2065: 'TVIF_EXPANDEDIMAGE': undeclared identifier
1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\atlmfc\include\afxcmn2.inl(270,69): error C2065: 'RB_SETEXTENDEDSTYLE': undeclared identifier
1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\atlmfc\include\afxcmn2.inl(272,69): error C2065: 'RB_GETEXTENDEDSTYLE': undeclared identifier

-----------------------------------------------------------------

WTL requires ATL which is not included in the Express edition.  Atlrx.h normally lives in the $(VCInstallDir)VC\atlmfc\include folder.

你可能感兴趣的:(windows)