Win7 VS2017 compiles errors using detours

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

) The sample in the

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 >

Mar.31,2021

needs to reference windows.h before referencing detours

  • Qt5.6 QProcess::start gets standard output

    platform: windows10 after I use the start function of QProcess to execute the local (current directory) python file, I can t get standard output from readAllStandardOutput. Code of python file: print "hello,world " Qt Code: -sharpinclude <QP...

    Mar.04,2021
Menu