How to Build Microsoft Detours Express (32-bit) on 64-bit Windows

Microsoft Detours Express, which is 32-bit only, can still be built on 64-bit operating systems. Here's how:

  1. Open a 32-bit Command Prompt (C:\Windows\SysWow64\cmd.exe).
  2. Run VCVARS32.BAT
    • VS2010: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
    • VS2008: "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
  3. Set the target processor to x86 (set DETOURS_TARGET_PROCESSOR=X86).
  4. Build Detours using nmake.

About Jeff Fitzsimons

Jeff Fitzsimons is a software engineer in the California Bay Area. Technical specialties include C++, Win32, and multithreading. Personal interests include rock climbing, cycling, motorcycles, and photography.
This entry was posted in Technology, Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *