title: How to convert an Integer Handle to HWND
body: <p>I am writing a small test program, and for that i require the handle of an edit control. I have copied the value of the handle from Spy ++ (lets say 000A0B40).</p>
  
  <p>So i did the following</p>
  
  <pre><code>#define editControlHandle 0x000A0B40
  
  int *intHandle;
  intHandle=(int*)editControlHandle;
  HWND handle=(HWND)intHandle;
  int textlength=GetWindowTextLength(handle);
  </code></pre>
  
  <p>I also did a <code>getlasterror</code> and it gave me error_success.</p>