title: Dev-C++ and Detours compiling error
body: <p>As title says I'm trying to compile with Dev-C++ a simple DLL using Detours, but I get this error:</p>
  
  <pre><code>syntax error before token '&amp;'
  </code></pre>
  
  <p>on this lines:</p>
  
  <pre><code>DetourAttach(&amp;(PVOID &amp;)trueMessageBox, hookedMessageBox)
  DetourDetach(&amp;(PVOID &amp;)trueMessageBox, hookedMessageBox)
  </code></pre>
  
  <p>The complete code is</p>
  
  <pre><code>#include &lt;windows.h&gt;
  #include &lt;detours.h&gt;
  
  #pragma comment( lib, "Ws2_32.lib" )
  #pragma comment( lib, "detours.lib" )
  #pragma comment( lib, "detoured.lib" )
  
  
  int (WINAPI * trueMessageBox)(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType) = MessageBox;
  int WINAPI hookedMessageBox(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType)
  {
      LPCSTR lpNewCaption = "You've been hijacked";
      int iReturn = trueMessageBox(hWnd, lpText, lpNewCaption, uType);
      return  iReturn;
  }
  
  BOOL WINAPI DllMain( HINSTANCE, DWORD dwReason, LPVOID ) {
      switch ( dwReason ) {
          case DLL_PROCESS_ATTACH:           
                  DetourTransactionBegin();
                  DetourUpdateThread( GetCurrentThread() );
                  DetourAttach(&amp;(PVOID &amp;)trueMessageBox, hookedMessageBox)
                  DetourTransactionCommit();
                  break;
  
          case DLL_PROCESS_DETACH:
                  DetourTransactionBegin();
                  DetourUpdateThread( GetCurrentThread() );
                  DetourDetach(&amp;(PVOID &amp;)trueMessageBox, hookedMessageBox)
                  DetourTransactionCommit(); 
                  break;
      }
  
      return TRUE;
  }
  </code></pre>