Detours 2.1

Posts 115 of 17 · Page 1 of 2
Detours 2.1
I'm trying to set up my compiler to be able to use the Detours 2.1 SDK. And well Microsoft is being... a you know what. As usual. Does anyone know how to get the Detours SDK to work on Visual Studios. I tried adding directories and everything. I even searched online, but people keep saying something about installing a detours.lib file, but get this... none comes with the SDK...

Any help will be appreciated. =/
If you got the dll, just make one.. do you at least have a .def file?
if so:
LIB /DEF:detours.def /OUT:detours.lib /machine:x86
Quote Originally Posted by B1ackAnge1 View Post
If you got the dll, just make one.. do you at least have a .def file?
if so:
LIB /DEF:detours.def /OUT:detours.lib /machine:x86
idk... I think I have a make file, though, I don't know what it expects me to do. Does it want me to load all the source files into every project I make o_O?
If all you have is a bunch of source files & a make file it's telling you to build the DLL yourself
Quote Originally Posted by B1ackAnge1 View Post
If all you have is a bunch of source files & a make file it's telling you to build the DLL yourself
What?! >_> oh! That's what it meant, well now I have to figure out how to do that. brb (when I use brb in a forum, since there is almost always a delay anyway, it means expect me to reply in a day or so.)
command prompt>nmake
Btw if you're trying to build this using VS2008s nmake and get some errors i've got a fixed version for you
Detours Express 2.1.rarattachment deleted · 229 downloads before removal
Quote Originally Posted by B1ackAnge1 View Post
Btw if you're trying to build this using VS2008s nmake and get some errors i've got a fixed version for you
Ok so I just open VS2008 up in cmd line and enter in the name of the make file right?
Yeah basically
Start->Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt
(or open a normal one, but find & run VCVARS.bat first)
then cd to your detours folder (C:\program files\microsoft research\detours 2.1\
and simply type: nmake
it defaults to use 'makefile' so you're good to go then
Quote Originally Posted by B1ackAnge1 View Post
Yeah basically
Start->Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt
(or open a normal one, but find & run VCVARS.bat first)
then cd to your detours folder (C:\program files\microsoft research\detours 2.1\
and simply type: nmake
it defaults to use 'makefile' so you're good to go then
When you say cd? you mean...?

Im not used to doing things by command line...
cd = change directory command?

i'll hit you up on msn in a bit to explain
Quote Originally Posted by B1ackAnge1 View Post
cd = change directory command?

i'll hit you up on msn in a bit to explain
Wait nope!

I got it. one sec...

Code:
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd "C:\Program Files\Microsoft Research\Detours Express 2.1\src"
Building for 32-bit X86.
        if not exist "..\include" mkdir "..\include"
Access is denied.
NMAKE : fatal error U1077: 'if' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
It started then it failed on me... =/
Use detours 1.5 and your problems are fixed(last time I tried 2.1 was full of ******ness)
run Command Prompt as admin + heres the detours 1.5 if anyone needed.
Detours.rarattachment deleted · 61 downloads before removal
Quote Originally Posted by Matrix_NEO006 View Post
run Command Prompt as admin + heres the detours 1.5 if anyone needed.
Detours 1.5 is a lot simpler I know. Microsoft always tends to overcomplicate things ...
Posts 115 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?