title: C++ error typedef cannot be overloaded
body: <p>I have this c++ programm and for some reason it wont compile . I am using XP with VS 2005 .</p>
  
  <pre><code>#include "stdafx.h"
  #include "MainThread.h"
  
  HANDLE  hStopEvent = NULL;
  
  int main(int argc, char *argv[])
  {
  
      return 0;
  }
  
  error C2146: syntax error : missing ';' before identifier 'hStopEvent'
  error C2377: 'HANDLE' : redefinition; typedef cannot be overloaded with any other symbol
  see declaration of 'HANDLE'
  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  </code></pre>