title: pass member function from C++ CLI to native C callback
body: <p>I've got problems passing a member function of a C++ CLI class to a native C callback from a library.</p>
  
  <p>To be precise its the Teamspeak 3 SDK.</p>
  
  <p>You can pass a non member function using the following code without problem:</p>
  
  <pre><code>struct ClientUIFunctions funcs;
  
  /* Initialize all callbacks with NULL */
  memset(&amp;funcs, 0, sizeof(struct ClientUIFunctions));
  funcs.onConnectStatusChangeEvent        = onConnectStatusChangeEvent;
  </code></pre>
  
  <p>But I need to pass a pointer to a member function, for example:</p>
  
  <pre><code>    funcs.onConnectStatusChangeEvent        = &amp;MyClass::onConnectStatusChangeEvent;
  </code></pre>
  
  <p>Any other idea how to use the event within a non static member function is welcome to.</p>
  
  <p>Thanks in advance!</p>