title: _beginthread/ex C3861 - identifier not found
body: <p>Here is my test code</p>
  
  <pre><code>#include "stdafx.h"
  #include "windows.h"
  #include "iostream" 
  using namespace std;
  
  HANDLE hMutex;
  
  static unsigned __stdcall threadFunc(void *params)
  {
      WaitForSingleObject(hMutex,INFINITE);
      printf(":D:D:D\n");
      ReleaseMutex(hMutex);
      return NULL;    
  }
  
  int _tmain(int argc, _TCHAR* argv[])
  {
          hMutex=CreateMutex(NULL,FALSE,NULL);
          //first try
          unsigned dwChildId;
          _beginthreadex(NULL, 0, &amp;threadFunc, NULL, 0, &amp;dwChildId);
          //second try
          _beginthread(threadFunc, 0, NULL );
          WaitForSingleObject(hMutex,INFINITE);
          printf("HD\n");
          ReleaseMutex(hMutex);
          int i;
          cin &gt;&gt; i;
      return 0;
  }
  </code></pre>
  
  <p>Gives me 2 errors :</p>
  
  <pre><code>Error   1   error C3861: '_beginthreadex': identifier not found 
  Error   2   error C3861: '_beginthread': identifier not found   
  </code></pre>
  
  <p>I am using MFC as shared DLL. Also i dont know how to create two threads with same function.</p>
  
  <p>After i included 'process.h' </p>
  
  <pre><code>Error   2   error C2664: '_beginthread' : cannot convert parameter 1 from 'unsigned int (__stdcall *)(void *)' to 'void (__cdecl *)(void *)'    
  </code></pre>