title: winapi openfiledialog c++
body: <p>I use mingw, c++
  I would like to open multiple files, something like this:</p>
  
  <pre><code>OPENFILENAME ofn;
  ZeroMemory(&amp;ofn, sizeof(ofn));
  
  ofn.lStructSize = sizeof(ofn);
  ofn.hwndOwner = hwnd;
  ofn.lpstrFilter = "TXT\0"
          "*.txt\0";
  ofn.lpstrFile = szFileName;
  ofn.nMaxFile = MAX_PATH;
  ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT;
  ofn.lpstrDefExt = "txt";
  </code></pre>
  
  <p>But how can I get the filenameS? If I check the szFileName variable, it only contains the folder name.</p>