title: Visual C++6 MFC MapViewOfFile returns error code 8
body: <p>I have a program that is creating a map file, its able to do that call just fine, <code>m_hMap = CreateFileMapping(m_hFile,0,dwProtect,0,m_dwMapSize,NULL);</code>, but when the subsequent function call to <code>MapViewOfFile(m_hMap,dwViewAccess,0,0,0)</code>, I get an error code of 8, which is ERROR_NOT_ENOUGH_MEMORY, or error string "error Not enough storage is available to process this command".</p>
  
  <p>So I'm not totally understanding what the MapViewOfFile does for me, and how to fix the situation. </p>
  
  <p>some numbers...</p>
  
  <pre><code>m_dwMapSize = 453427200
  dwProtect = PAGE_READWRITE;
  dwViewAccess = FILE_MAP_ALL_ACCESS;
  </code></pre>
  
  <p>I think my page size is <code>65536</code></p>