Although these are old similar questions, they might help you:
- https://social.msdn.microsoft.com/Forums/vstudio/en-US/2cd8c0b2-b7fb-4bce-bca3-4ba773113d2e/error-c1083cannot-open-include-file-atlimpl-cpp-no-such-file-or-directory?forum=vcgeneral
- https://social.msdn.microsoft.com/Forums/en-US/4117ea1a-23a9-4b57-a753-547f9fc1087b/statregcpp-atlimplcpp-is-obsolete?forum=vcgeneral
- https://social.msdn.microsoft.com/Forums/en-US/6542caa8-14ba-4ad9-84b0-8542e777f91d/why-atlimplcpp-is-not-included-with-visual-studio-2017-installer-?forum=vcgeneral
- This article is related with the Error C3861: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c3861?view=msvc-170
Regards