title: How can I pass a class member function as a callback?
body: <p>I'm using an API that requires me to pass a function pointer as a callback. I'm trying to use this API from my class but I'm getting compilation errors. </p>
  
  <p>Here is what I did from my constructor:</p>
  
  <pre><code>m_cRedundencyManager-&gt;Init(this-&gt;RedundencyManagerCallBack);
  </code></pre>
  
  <p>This doesn't compile - I get the following error: </p>
  
  <blockquote>
    <p>Error  8 error C3867: 'CLoggersInfra::RedundencyManagerCallBack': function call missing argument list; use '&amp;CLoggersInfra::RedundencyManagerCallBack' to create a pointer to member</p>
  </blockquote>
  
  <p>I tried the suggestion to use <code>&amp;CLoggersInfra::RedundencyManagerCallBack</code> - didn't work for me. </p>
  
  <p>Any suggestions/explanation for this??</p>
  
  <p>I'm using VS2008.</p>
  
  <p>Thanks!!</p>