title: C2664 Cannot convert parameter 1 from 'int' to 'hwnd'
body: <p>Im trying to make a simple program for a old pocketpc application.</p>
  
  <p>Want it to get the time and show it when i use the pushbutton.</p>
  
  <p>With the code below, i get two compiler errors:</p>
  
  <pre><code>error C2664: 'SetWindowTextW' : cannot convert parameter 1 from 'int' to 'HWND' Line: 201
  error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [7]' to 'LPCWSTR'  Line: 233
  </code></pre>
  
  <p>Ive tried to search, seems to be a common misunderstanding this, but i cant see an explanation that fits..</p>
  
  <pre><code>_strdate( dateStr);
  SetWindowText(1003, dateStr);
  </code></pre>
  
  <p>Also this:</p>
  
  <pre><code>hwndLabel = CreateWindow("STATIC","Time",
          WS_VISIBLE | WS_CHILD | SS_RIGHT,
          10,200,75,35,hWnd,NULL,1003,NULL);
  </code></pre>
  
  <p>Edit:</p>
  
  <p>After Xearinox suggestions, i get three new faults.</p>
  
  <p>These:</p>
  
  <pre><code>error C2664: '_wstrdate' : cannot convert parameter 1 from 'char [9]' to 'wchar_t *'    199
  error C2664: 'SetDlgItemTextW' : cannot convert parameter 3 from 'char [9]' to 'LPCWSTR'    201
  error C2440: '=' : cannot convert from 'HWND' to 'int'  233
  </code></pre>
  
  <p>if i remove (HMENU) from the static, i get another last error:</p>
  
  <pre><code>error C2664: 'CreateWindowExW' : cannot convert parameter 10 from 'int' to 'HMENU'  233
  </code></pre>