title: problem with reading program arguments in Visual Studio C++
body: <p>I'm running C++ program in VS2005, and I've set only one argument in project properties-> debug-> command line args, and it's named <code>profile1.dll</code> for example.  </p>
  
  <p>here's a code snippet</p>
  
  <pre><code>cout&lt;&lt;"number of arguments:" &lt;&lt; argc&lt;&lt;endl;
  
  for (int i=0; i&lt;argc; i++)
         cout &lt;&lt; "argument " &lt;&lt; i &lt;&lt; ": " &lt;&lt; argv[i] &lt;&lt; endl;
  </code></pre>
  
  <p>In the output I get</p>
  
  <pre><code>number of arguments:2
  argument 0: c
  argument 1: p
  </code></pre>
  
  <p>don't know why it doesn't print the name of the argument?</p>