title: Call c++ function pointer from c#
body: <p>Is it possible to call a c(++) static function pointer (not a delegate) like this</p>
  
  <pre><code>typedef int (*MyCppFunc)(void* SomeObject);
  </code></pre>
  
  <p>from c#?</p>
  
  <pre><code>void CallFromCSharp(MyCppFunc funcptr, IntPtr param)
  {
    funcptr(param);
  }
  </code></pre>
  
  <p>I need to be able to callback from c# into some old c++ classes. C++ is managed, but the classes are not ref classes (yet).</p>
  
  <p>So far I got no idea how to call a c++ function pointer from c#, is it possible?</p>