title: ask : memmove() and memcpy() on QT (c++)
body: <p>simple question, I have problem with memmove() and memcpy() when i'm using it. I really don't understand what wrong with my code. by the way i use QT.</p>
  
  <pre><code>HANDLE hFile;
  HANDLE hMapFile;
  HANDLE hMapView;
  
  hFile = CreateFileW((const wchar_t*) objPath.constData(), GENERIC_READ , 0, NULL, OPEN_EXISTING, 0, NULL);
  if (hFile != INVALID_HANDLE_VALUE){
  
      hMapFile = CreateFileMappingW(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
      if (hMapFile != INVALID_HANDLE_VALUE){
  
          hMapView = MapViewOfFile(hMapFile, GENERIC_READ, 0, 0,0);
          if (hMapView != INVALID_HANDLE_VALUE){
              uint DefineWord;
              memmove((void *) &amp;DefineWord, hMapView,2); // &lt;- always error right here
              qDebug()&lt;&lt;DefineWord;
          }
      }
  }
  </code></pre>