title: Microsoft Visual Studio: opendir() and readdir(), how?
body: <p>I've used this kind of code in my Dev-cpp before:</p>
  
  <pre><code>if((dh = opendir(folder)) !== false){
      while((file = readdir(dh)) !== false){
          // do my stuff
      }
      closedir(dh);
  }
  </code></pre>
  
  <p>But now i am using MSVC++ and i dont know how to add those files there, i tried to copy dirent.h/dir.h/errno.h in there, but it gives another error relating to another included files inside those files ..., and by looking in the files i see mingw stuff there so its compiler related? idk what compiler MSVC++ uses, but is it possible to copypaste those files in MSVC++ and get it working?</p>
  
  <p>I tried to look up some code from MSDN but it was really messed up, so im hoping i could use these functions above...</p>