title: Generate OpenCV 64-bit DLL
body: <p>I sucessfully compiled a 32-bit DLL using c++/cli/OpenCV in Viusal Studio 2010.
  I am trying to create a 64-bit DLL. When I change the Build configuration to x64 and compile it, it gives me </p>
  
  <pre><code>c:\opencv2.2\include\opencv2\core\mat.hpp(379): fatal error C1001: An internal error has   
  occurred in the compiler. (compiler file     \
  'f:\dd\vctools\compiler\utc\src\p2\wvm\mdmiscw.c', line 2704)
  </code></pre>
  
  <p>Any tips?</p>
  
  <p>UPDATE:
  It turned out that c++-cli has some bug with opencv 64 bit. I added this</p>
  
  <pre><code>   #pragma managed(push, off)
     #include &lt;opencv/cv.h&gt; 
     #pragma managed(pop) 
  </code></pre>
  
  <p>and that fixed it</p>