title: run threads of class member function in c++
body: <p>As the title says.
  The following is my code skeleton.</p>
  
  <pre><code>class CLASS
  {
  public:
      void A();
  private:
      DWORD WINAPI B(LPVOID);
  };
  
  void CLASS::A()
  {
      DWORD (WINAPI CLASS::*thread)(LPVOID) = &amp;CLASS::B;
      ...
      CreateThread(NULL, 0, thread, &amp;arg, 0, NULL);
      ...
  }
  </code></pre>
  
  <p>the function B needs CLASS's member variables.<br>
  But I've got an error code when I compiled this.<br>
  It's " can't convert argument 3 from 'DWORD (__stdcall CLASS::* )(LPVOID)' to 'LPTHREAD_START_ROUTINE' " or something like that.<br>
  I don't know if it is the same in the english environment.<br></p>
  
  <p>can anybody help please?</p>