problem description
after downloading the detours code on github, nmake compiles ok to generate h and lib files.
Unknown architecture (x86, amd64, ia64, arm, arm64)
add-sharpdefine _ x86_ manually in VS2017, the above errors are gone, but there are more than N compilation errors.
1 > d:detoursincludedetours.h (267): error C2061: syntax error: identifier "DWORD"
1 > d:detoursincludedetours.h (268): error C2061: syntax error: identifier "Data2"
1 > d:detoursincludedetours.h (268): error C2059: syntax error: ";"
.
1 > d:detoursincludedetours.h (442): fatal error C1003: error count over 100; stopping compilation
detous directory compiles ok. All examples can be run. I really don"t understand why it can"t be used in VS2017. Is there any configuration to add?
related codes
only in the main file-sharpinclude < detours.h >