title: Pointer to Pointer Managed C++
body: <p>I have an old C library with a function that takes a void**:</p>
  
  <pre><code>oldFunction(void** pStuff);
  </code></pre>
  
  <p>I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):</p>
  
  <pre><code>oldFunction( static_cast&lt;sqlite3**&gt;(  &amp;m_pStuff ) );
  </code></pre>
  
  <p>This gives me the following error from Visual Studio:</p>
  
  <blockquote>
    <p>error C2440: 'static_cast' : cannot convert from 'cli::interior_ptr' to 'void **'</p>
  </blockquote>
  
  <p>I'm guessing the compiler is converting the void* member pointer to a cli::interior_ptr behind my back.</p>
  
  <p>Any advice on how to do this?</p>