Dev-C++ and Detours compiling error
- by Julio
Hello.
As title says I'm trying to compile with Dev-C++ a simple DLL using Detours, but I get this error:
syntax error before token '&'
on this lines:
DetourAttach(&(PVOID &)trueMessageBox, hookedMessageBox)
DetourDetach(&(PVOID &)trueMessageBox, hookedMessageBox)
The complete code is
#include <windows.h>
#include…