title: c++ - _mkdir giving false errors windows
body: <p>Hi I am trying to make a directory in windows with this code</p>
  
  <p>header</p>
  
  <pre><code>#include &lt;direct.h&gt;
  </code></pre>
  
  <p>script</p>
  
  <pre><code>int main() {
      string local = "C:/Program Files (x86)/Mail";   
  
      try
      {
          _mkdir (local.c_str ());
          cout &lt;&lt; "It is made?";
      }
  
      catch(invalid_argument&amp; e)
      {
          cout &lt;&lt; e.what () &lt;&lt; " " &lt;&lt; (char*) EEXIST;
          if (e.what () == (char*) EEXIST) {
              cout &lt;&lt; e.what () &lt;&lt; " " &lt;&lt; (char*) EEXIST;
          }
          return;
      }
  }
  </code></pre>
  
  <p>The file is clearly not made, but it is also not making <a href="https://msdn.microsoft.com/en-us/library/2fkk4dzw.aspx" rel="nofollow">the error it should.</a></p>