-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling Detours #334
Comments
Did you include ATL / MFC when installing Visual Studio? |
@lwahonen I definitely have MFC installed as I use it. What I think might be happening is that the Detours project is configured for Also, I don’t understand why there is not a build option to just build the library files and not the samples. All I want is the library / header for use in my project with another third party header that implements dark mode task dialogs. |
@lwahonen
with
Now it compiles with no errors. |
@lwahonen |
Either way, VS should've offered you to upgrade the platform toolset when opening the solution but I guess it didn't. Manually changing it is fine. |
@sylveon |
The FAQ has step by step instructions for building via nmake: https://github.com/microsoft/detours/wiki/faq#where-can-i-find-detourslib-and-detoursh |
Sure, I have tried using the VC Command Prompt:
But that is not a full compile like I get in VS 2022. |
I don't want to use VCPKG as I find it difficult to understand. NuGet Manager was simple.
So I used GitHub Desktop to clone the repository to my pc. Then I opened the solution file in Visual Studio 2022.
But it says:
I don't want to install the 2019 build tools. Can I configure it for 2022 build tools?
So I closed the SLN file and opened the VCXPROJ file instead and tried to cmpile debug x86:
Either way, I can't compile the x86 or x64 library files. Please advise.
The text was updated successfully, but these errors were encountered: