title: SetTimer in VC++
body: <p>I need to create Timer in my VC++ application , at where i need to set timer and on timeout of timer , i need to call one specific method... </p>
  
  <p>i have seen msdn forums for that and done below code to do that
  <code>SetTimer(NULL,1,5*1000,TimerProc);</code></p>
  
  <p>and my <code>TimerProc</code> method is as below</p>
  
  <pre><code>void CALLBACK TimerProc(HWND aHwnd, UINT aMessage, UINT_PTR aTimerId, DWORD aTime)
  {
      StopProceess();
  }
  </code></pre>
  
  <p>i assume after 5 seconds the <code>SetTimer</code> should call <code>TimerProc</code> method , but it is never called. no idea what i am doing wrong in this. or plz suggest if there's any alternative to do it.</p>
  
  <p>Thanks. </p>