title: C++ Function call missing argument list
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  #include &lt;process.h&gt;
  #include &lt;time.h&gt;
  #include &lt;conio.h&gt;
  
  using namespace std;
  class Klasa
  {
  public:
      void petla(void* Args)
      {
          time_t tWait = clock() + 4 * CLOCKS_PER_SEC;
          for(;;)
          {
              cout &lt;&lt; "Test dzialania watkow" &lt;&lt; endl;
              Sleep(1000);
          }
          _endthread();
      }
  };
  void main()
  {
      Klasa* pKlasa = new Klasa;
      time_t tCzas = clock() + 10 * CLOCKS_PER_SEC;
      _beginthread(pKlasa-&gt;petla, 0, NULL);
      while(tCzas&gt;=clock())
      {
          cout &lt;&lt; " Dziala" &lt;&lt; endl;
          Sleep(500);
      }
      getch();
  }
  </code></pre>
  
  <p>Error   1   error C3867: 'Klasa::petla': function call missing argument list; use '&amp;Klasa::petla' to create a pointer to member c:\users\bartek\documents\visual studio 2012\projects\wątki\wątki\source.cpp    26  1   Wątki</p>
  
  <p>This is an error and I don't know What shoud I do cause I can't put <code>()</code> in this                                                                                           <code>beginthread(pKlasa-&gt;petla, 0, NULL);</code>
  Guys please help me :C </p>