title: Convert a pointer to an array in C++
body: <p>The CreateFileMapping function returns a pointer to a memory mapped file, and I want to treat that memory mapping as an array.</p>
  
  <p>Here's what I basically want to do:</p>
  
  <pre><code>char Array[] = (char*) CreateFileMapping(...);
  </code></pre>
  
  <p>Except apparently I can't simply wave my arms and declare that a pointer is now an array.</p>
  
  <p>Do you guys have any idea how I can do this?  I don't want to copy the the values the pointer is pointing to into the array because that will use too much memory with large files.</p>
  
  <p>Thanks a bunch,</p>