title: how to create a thread using a non static method in vc++ mfc
body: <p>I am creating a thread using this call:</p>
  
  <pre><code>m_pThread=AfxBeginThread(read_data,(LPVOID)hSerial);
  </code></pre>
  
  <p><code>read_data</code> is a static method in my class.</p>
  
  <p>But I want to call a non static method and make a thread.</p>
  
  <p>As I want to share a variable between this thread and one of my class method.</p>
  
  <p>I tried taking a static variable but it gave some errors.</p>