Function doesnt want to take my argument?
<p>A friend sent me his threading class.
Now I just want to run a listener but the thread doesnt want to accept the function.
I want to execute the function (defined in <code>static class Networks</code>) <code>THREAD listen(void* args)</code>. <code>THREAD</code> is a <code>#define THREAD unsigned __stdcall</code></p>

<pre><code>Networks::init() {
  listenerth = thread();
  listenerth.run(listen, NULL, "listener");
}
</code></pre>

<p>In <code>class thread</code> he defined <code>run</code> as <code>void run( THREAD func(void*), void* args, const char* pname);</code></p>

<p>How can I get that to run listen in another thread either?</p>

<p>[edit]
Error message:
main.cpp(19): error C3867: 'Networks::listen': function call missing argument list; use '&amp;Networks::listen' to create a pointer to member</p>

<p>But when i move my mouse to the error place(symbol listen), it shows me this in a tooltip(yes, MS VC++):</p>

<blockquote>
  <p>unsigned int __stdcall
  Networks::listen(void* data)</p>
  
  <p>Error: argument of type "unsigned int
  (__stdcall Networks::*)(void *data)"
  is incompatible with parameter of type
  "unsigned int (__stdcall <em>)(void</em>)"</p>
</blockquote>
