title: Execute C++ exe from C# form using Process.start()
body: <p>I'm trying to create a C# form app that will allow me to use all of my previous C++ programs from one central program.</p>
  
  <p>I'm able to open the exes with <code>Process.Start()</code>, however it does not compile the code correctly. </p>
  
  <p>Example code:</p>
  
  <pre><code>Process.Start("C:\\\Documents and Settings\\\dan\\\Desktop\\\test.exe");
  </code></pre>
  
  <p>This will bring up the console and act like it's running, but it does not run like when I normally compile out of the C++ editor. Is there a <code>startinfo</code> variable I need to set to signify that it's a C++ program or something along that line?</p>
  
  <p>Also, is there any way to execute a C++ program using <code>process.start</code> that will allow me to pass it variables through the command line via <code>argc</code> and <code>argv</code>?</p>
  
  <p>Thanks</p>