Hi,
If you want to configuring programs for Windows XP, as far as I'm concerned you should get the v141_xp platform toolset.
The v142 toolset supplied in Visual Studio 2019 doesn't include support for creating code for Windows XP. Support for Windows XP development by using the Visual Studio 2017 v141_xp toolset is available as an individual component option in the Visual Studio Installer.
For more details I suggest you could refer to the Doc: Configuring Programs for Windows XP
Best Regards,
Jeanine Zhang
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.